They do this by adding a ton of useless markup and splitting words like "ad" into single-letter spans with random class names and 8-layer deep nests of `<div>` so it's very hard to write selectors against. One has to wonder how that div soup affects accessibility as I find it very unlikely that this content is presented nicely to assistive tools. I hope they get all the ADA suits they deserve for this.
I recently found this out the hard way. Instagram’s web app has a super annoying popup. To click the comments button for a post, your cursor has to pass over the username, which just happens to launch a profile preview with the “follow” button exactly where the comments button was, causing you to unintentionally follow the account.
I tried to block this popup with uBlock Origin to no avail. No matter what element I selected, it was still there. Finally fixed the problem by deleting my Instagram account.
Last I tried writing custom rules for Facebook was years ago, but they did have proper aria attributes, and uBlock origin does have selectors for text content. These are from 2020:
facebook.com##span:has-text(Suggested for You):xpath(../../../../../../../../../../../../../../../../../..)
facebook.com##div[aria-label="Sponsored"] span[aria-label="Sponsored"]:xpath(../../../../../../../../../../../../../../../../../../../../..)
facebook.com##div[aria-label="Sponsored"]:xpath(../../../../../../../../../../../../../../../../../../../..)
Once LLMs get fast enough at processing real-time images Apple (or anybody really) can just roll out a browser rendering engine that just masks all ads. It will take a few years but the browser ad-business is in it's terminal phase.
If we're just talking about image based ads it would be easier to simply denylist every image on a page and only render alt-text until the user clicks to reveal it.
Worth noting though that Apple injects ads into the News app, which is just a webview, so it's certainly not them that will do this.
It's amazing how people think Apple has a clean reputation because they've added a thin layer of indirection to their participation in the surveillance ecosystem.
The race of ending personal computing is there. I am sure big players want to control entire stack and users just sitting in front of dumb monitors consuming their ads.
Such naïveté. The much more likely scenario is that AI is used to add or replace ads in a website in a way that's now impossible to remove. Running your own AI on the browser will be disallowed to "ensure a safe browsing experience".
Yes, it's a near-universal legal requirement that humans be able to tell if something is an ad or not. So once they sabotage that, they're in hot water.
It would be fun to train a small vision neural network to recognize ads instead of relying on HTML or network requests. I don't know if anyone has done this yet.
Assuming you insist on using facebook you can proxy it, using a simple script that removes all ads prior to serving. The problem of course is that this is not cheap. Easier to just not use facebook.
Because the ad ecosystem has two sides. I used to think my ISP could just magically support IPv6 and didn't need routing protocols or peering agreements, too. (They support it now)
Websites with ads need to satisfy the ad buyers. This means running a bunch of JavaScript that's adversarial to the website and fingerprints both the website and the browser to determine where and to whom the ad is actually shown. It's like a cloudflare bot challenge is happening behind the scenes. Of course all this stuff doesn't happen on the website's own domain, or the website could manipulate it.
And the ad that's originally delivered might not actually be the ad, but might be a script that fetches the real ad from a different server, if the incentives line up that way. Imagine you have a contract to advertise on a site, but someone else wants to advertise on the same site and pays you to forward their ad. It's all a huge mess.
I think that just goes to prove that content providers and ad providers could defeat ad blockers if they worked together. (And perhaps made the ads less offensive so people don't have motivation to block them.)
Most sites are not in business of running ad marketplace. They are in content production and SEO(as in pulling views). I don't think at scale they could operate it would be worth to be ad marketplace. Or would they get the customers(advertisers).
Content based ads work fine for this. If you have a site about some topic, advertisers for that audience can just pay you some amount to put their ad in your posts or embed an image.
Networks are only necessary if you want to run new ads for every year or tie into their browsing history or other algorithmic stuff. But if someone wants to pay you 3k to run a banner ad for a few weeks that would be pretty easy to just embed.
> Most sites are not in business of running ad marketplace.
You don't have to run a marketplace. Back then, people were calling via phone to put an ad into the newspaper. The same concept can still apply today.
You can just place an ad _where you actually want it_ instead of having a shitty decision engine decide it for you. Marketing budgets are messed up all over the place since social media, because they're really inefficient in finding the customers that actually wants to buy their stuff.
If you don't believe me, just take a look at facebook, they're trying to shove ads up your feed 99% of the time. It's a feed of ads, not a feed of "friends" anymore. Good luck trying to catch the 1% of posts that were actually the reason why you used the platform in the first place.
I tried to block this popup with uBlock Origin to no avail. No matter what element I selected, it was still there. Finally fixed the problem by deleting my Instagram account.
This sounds perfectly matched for an on-device LLM?
https://www.fbpurity.com/
Worth noting though that Apple injects ads into the News app, which is just a webview, so it's certainly not them that will do this.
Such a move would also presumably be incompatible with Apple's highly lucrative search engine deal with Google.
Though evidently someone's cut a deal because Facebook groups is all over Google search results these days.
Websites with ads need to satisfy the ad buyers. This means running a bunch of JavaScript that's adversarial to the website and fingerprints both the website and the browser to determine where and to whom the ad is actually shown. It's like a cloudflare bot challenge is happening behind the scenes. Of course all this stuff doesn't happen on the website's own domain, or the website could manipulate it.
And the ad that's originally delivered might not actually be the ad, but might be a script that fetches the real ad from a different server, if the incentives line up that way. Imagine you have a contract to advertise on a site, but someone else wants to advertise on the same site and pays you to forward their ad. It's all a huge mess.
Networks are only necessary if you want to run new ads for every year or tie into their browsing history or other algorithmic stuff. But if someone wants to pay you 3k to run a banner ad for a few weeks that would be pretty easy to just embed.
You don't have to run a marketplace. Back then, people were calling via phone to put an ad into the newspaper. The same concept can still apply today.
You can just place an ad _where you actually want it_ instead of having a shitty decision engine decide it for you. Marketing budgets are messed up all over the place since social media, because they're really inefficient in finding the customers that actually wants to buy their stuff.
If you don't believe me, just take a look at facebook, they're trying to shove ads up your feed 99% of the time. It's a feed of ads, not a feed of "friends" anymore. Good luck trying to catch the 1% of posts that were actually the reason why you used the platform in the first place.