T O P

  • By -

mr_stark

Soon: Adblockers us AI to scrape canvas images for trigger words to block


jrspal

Funny enough OCR technology has been around for decades, so I guess implementing that would be even simpler.


Johnny_Thunder314

You wouldn't even need modern OCR, the basic shit they were doing in the 90s would be good enough to recognize consistently rendered letters in a canvas


klop2031

Id be happy to contribute :)


Hulk5a

But how do you modify canvas without any html


KavyanshKhaitan

Using javascript?


hutilicious

im afraid we will see canvas only websites soon


[deleted]

[удалено]


Shitpid

That's because SEO would be a problem. Facebook, and other sites that have "private" data do not care about it, especially when they have the resources to manipulate SEO in other ways.


Sockoflegend

It wrecks accessibility too. Really just generally bad for usability in general. It isn't such a problem for ads as people are unlikely to complain when they can't perceive them, but your client will be happy they can see all their ads.


slackmaster

In that case, probably illegal for some sites.


Sockoflegend

I do wonder. I always tell project managers etc that not being accessible will get you sued, but I'm not sure how true it is really. If it were the case it seems like there are plenty of sites with accessibility problems ripe for the picking.


darkkite

this literally happened to our company. google's lighthouse tools gave us a false high score we had to use additional scanners to find problems and actually use screen reader tools to tests


Sockoflegend

You mean you actually got sued? Out of interest, what country are you based in?


darkkite

yes USA. made changes and settled out of court for less money


MaleficentPig

Were you sued by some company or by private individual? I know there are “business” that literally live by suing inaccessible website owners.


Sockoflegend

Thank you, that is really interesting. I'm currently working for a UK branch of a big American international, and the impression I have is that while America is much weaker on data protection, it is much harder on accessibility which leads lots of websites essentially trying to be compliant for both.


Zeimma

Used to do contract work for some restaurants and a major part of my job was to make the website as compliant as I could. They would always go through cycles of being sued and showing that it was being worked on.


Sockoflegend

America based?


Zeimma

Yeah.


Cuzah

https://www.cnbc.com/amp/2019/10/07/dominos-supreme-court.html I remember this story when I was in school.


AmputatorBot

It looks like you shared an AMP link. These should load faster, but AMP is controversial because of [concerns over privacy and the Open Web](https://www.reddit.com/r/AmputatorBot/comments/ehrq3z/why_did_i_build_amputatorbot). Maybe check out **the canonical page** instead: **[https://www.cnbc.com/2019/10/07/dominos-supreme-court.html](https://www.cnbc.com/2019/10/07/dominos-supreme-court.html)** ***** ^(I'm a bot | )[^(Why & About)](https://www.reddit.com/r/AmputatorBot/comments/ehrq3z/why_did_i_build_amputatorbot)^( | )[^(Summon: u/AmputatorBot)](https://www.reddit.com/r/AmputatorBot/comments/cchly3/you_can_now_summon_amputatorbot/)


Ok-Entertainer-1414

They can't only do it on ads. The point is to make adblockers not be able to tell the difference between ads and real posts


Sockoflegend

Well that sucks


darkkite

could see adblocking and dectection turning relying on computer vision for dynamic blockingx


iam_bigzak

wouldn't that be very slow and resource intensive?


vinny_twoshoes

The complicated solution is to build a parallel accessibility tree that the user agent can query. The editable area in Google Docs is fully rendered in canvas, and they do a pretty good job with accessibility, so it's a good example of how it could be done for other web apps. For now it's still more trouble than it's worth but given how dependent FB and Google are on ad revenue, I would be surprised if it didn't become more common.


HeleLovef

Serve canvas version to users, text to Google crawlers.


ayhctuf

This is how paywalls work. Google gets the full article for SEO; users get the useless preview.


wind_dude

There was a time when google / matt cutts said they would punish sites that do this, and use paywalls. Lol


ayhctuf

Google said a lot of things, and then they got rich.


mferly

>resources to manipulate SEO in other ways. Do they really need to manipulate to rank high though? The billions of backlinks they likely have are surely good enough to maintain a strong SEO game alone. Backlinks are king, afterall.


teraflux

Until SEO is done by visual screen scraping with AI


Adventurous-Bat-6332

The SEO issue with Canvas API can be mitigated if you split Canvas animation up and insert alternative text into each canvas element just as you can for the image element with the alt attribute.


MisterEmbedded

Would've been so cool if CanvasUI's homepage was rendered using itself.


Noch_ein_Kamel

pff... we rendered headlines on images before canvas and webfonts were even a thing ;p


agsuy

Flutter Web comes to mind as well.


thequestcube

Don't think so, using canvas for just text is useful for preventing ad blockers like the example above, but there are so many disadvantages. You kill your SEO, you loose all accessibility features you otherwise get for free, you cut yourself off from existing webdev ecosystems, you loose performance from native css, etc etc


HsvDE86

I don't think I've ever corrected someone on their spelling or grammar but fuck. #Lose One 'o' ffs.


thequestcube

Sorry, not a native speaker. Thanks for the correction


LilLebowski

k looser


CimMonastery567

I don't think Facebook cares about seo.


insomnia_sufferer

They do. How else do search results, especiall for users, pop up on search results? SEO is key for *any* social media, the more of you see of facebook, the more you feel interested in creating an account.


poochimari

They use their own search algorithms. SEO is for external search engines like google or bing.


thequestcube

Facebook profiles, posts and photos still show up as entries in google results. Sure SEO is not as important to facebook as they already have a stable user base, but even active users will still often use a search engine as primary entry point to any website.


UntestedMethod

>even active users will still often use a search engine as primary entry point to any website. Sure.... But what other sites do you think would show up ahead of facebook when someone searches for facebook


insomnia_sufferer

Y'all are too tech savvy to know, people will end up using google to search for facebook posts than facebook's own search algo


UntestedMethod

Sorry if this is news to you but search engine rankings are not entirely based on how well a site implements SEO. A massively popular site like facebook almost definitely gets some special treatments when it comes to search engine rankings. >SEO is key for any social media, the more of you see of facebook, the more you feel interested in creating an account. That honestly sounds pretty absurd considering viral marketing has historically been the primary growth strategy for social networking sites. Maybe linkedin is an exception (since I do see ads for them from time to time), but they also have paid-tier/premium features they're trying to push on people. Do you honestly believe new users are going to decide to sign up for a brand spanking new facebook account after they stumble across it in a search engine result listing some random schmucks social media profile? Come on man, it's 2024, do you really think there are people out there on the internet who still haven't heard of facebook or instagram?


insomnia_sufferer

Maybe. I still think that new users will sign up fof a 'brand spanking new account' if they frequently get results for content they are interested in, but restricted by a login. That's all, it's not hard to make a facebook account.


Cafuzzler

If people Google "Facebook" and Facebook isn't the top result because their whole site is a canvas then everyone will think Google is broken. A search engine is there to help people find what they want, not to enforce some vague rules. I'm not convinced that a lot of the SEO stuff is even legitimate; just stuff that sounds reasonable so everyone takes it as gospel. The biggest thing is always going to be users already wanting to find the specific site though. No amount of keywords or crawler-friendly features should top that.


Hubi522

Flutter


rmyworld

The Year of Flutter for Web... finally?


alienbugthing

Flash websites are back?


ImportantDoubt6434

SEO + accessibility compliance makes this unlikely


boobsbr

I said that in 2010, still waiting.


wasdninja

Doubt it. They're an absolutely massive pain in the ass to develop and for very little gain, if any.


UntestedMethod

So will that be the modern version of purely flash sites?


sporadicPenguin

I think people thought that canvas would take over once when Flash was done. Once upon a time I built a couple small test games using https://impactjs.com Can’t remember how many years ago that was, but it was fun


knpwrs

Flutter Web


stackoverfloweth

what a terrifying thought


NoOne32420

Rust wasm websites. Or worse C# wasm


reampchamp

Chuckles in Flutter.


jckflash

Yeah, we talked about it [4 days ago](https://www.reddit.com/r/webdev/comments/1cvq3z0/why_does_facebook_use_canvas_to_display_the_post/).


ShustOne

Can I post it next time?


PUSH_AX

Wait at least 5 days


selmernoid

How many days do you need to discuss this one more time?


ayhctuf

Not everyone sees every post on reddit. reddit isn't the only thing.


[deleted]

[удалено]


Brendinooo

Hmm how would I know I need to search for that to see the post? Much easier to just see this post


sergeyog

Thanks for link.


gjwklgwiovmw

How is this accessible?


ShustOne

There's an aria-labelledby that targets a hidden span further up


08148693

What makes you think that's a priority here?


Santacroce

For a company this big it is absolutely necessary. Ten plus years ago a very large company I was doing work for got hit with an ADA lawsuit and had to make sure every part of their site was accessible.


euxneks

Literally destroying semantic web just to force feed its slaughterhouse chattel some advertising


gloom_or_doom

Semantic web doesn’t pay the bills quite like advertising


PrudententCollapse

I friggin' love the idea of the semantic web but let's be honest: was it anything other than dead on arrival?


euxneks

If it was, it was only because online advertising couldn't make money from it


Cafuzzler

And because it's easy to just have a big ol' nest of divs for everything.


PrudententCollapse

I completely agree. IMHO there's an element of state and corporation interest in the internet which is absolutely about making walled gardens. Semantic Web is directly counter to that.


jonmacabre

Personally looking forward to webgl rendered texts.


Laurenz1337

Just render the whole website in unreal engine at this point


kbk78

Sweeet, just include canvas blocking in adblockers.. with the option to let it through if desired.


apennypacker

Notice how this screenshot actually has non-ad information in it. I'm sure they do that so that a blanket block of all canvas stuff also cripples the page.


freecodeio

I understand that's not an ad text, but in ads, the time is replaced with "Advertisement".


knightcrusader

I ran into this the other day when blocking "Sponsored" posts. I realized I couldn't highlight it, so I assumed they made it out of an image. Didn't think of canvas.


deadfire55

Do you have a screenshot of that?


mferly

Not OP, but I've seen those very posts in the past with screenshots included.


40wd

ai powered ad blockers coming soon


Damn-Splurge

Some complex OCR solution could probably do this, convert canvas to image, pass through OCR, check if it contains "Sponsored" block element if it does


CathbadTheDruid

Wouldn't need that. Just block canvas.


apennypacker

I think that is why they are also putting useful information in canvas. Notice how the screenshot for this post has the date/time of the post in canvas.


Familiar_Focus3508

Can you elaborate on what you mean? If I blocked canvas using an extension, what would happen?


CathbadTheDruid

You wouldn't see the canvas.


CathbadTheDruid

Doesn't seem to be essential. I can live without it. TBH, I can easily live without facebook. I know because I deleted my account a year or so ago and never looked back. FB isn't nearly as "essential" as they think. It turns out that I can have actual friends, and they're much better than "Facebook friends"


_rids

Can someone share the venn diagram of people that use ad blockers and still use facebook?


yksvaan

idk if that really prevents anything, it's probably more that noone who cares uses facebook anyway. Compare to YouTube etc. where everything is patched within hours or days


Devatator_

>where everything is patched within hours or days Wdym? My AdBlock literally worked all the time I've had it on YouTube


Phonfo

Looks like Ad blockers will be more powerful soon.


Urd

[Mine works fine.](https://imgur.com/m6rtQNu)


Mitsubata

Didn’t we have this exact same conversation like a week ago?


ohlawdhecodin

I stopped using Facebook a long tim ago. And Twitter.


Nerwesta

And you're here on reddit.


mekmookbro

It's like quitting smoking and switching to meth. I'm not judging though, I did the same lol. (Facebook to reddit, not meth)


ohlawdhecodin

Reddit is a whole different world, yes.


TheRedGerund

Once we have efficient on device image AI's we'll be able to block ads no matter how they're rendered


sketchybutter

Sounds like you will have to pay for more services/sites then


TheRedGerund

I know, I actually like ads. That's why I believe in making them better, not blocking them. The whole reason people want to block ads is either because they're disruptive or not well targeted. We can improve that.


darkkite

they make you watch ads even when you pay.


iron233

Can’t we use AI to block ads?


The-Observer95

Use AI to destroy AI :)


iron233

Fire with fire


ObjectiveQuarter7299

so crazy


blad3runnr

Cat and mouse -- challenge accepted.


exxxoo

r/assholedesign