Facebook ads are so hard to block that uBlock Origin stopped filtering them

Facebook's ad-blocking resistance has become so sophisticated that uBlock Origin, a popular ad blocker, has stopped filtering its ads. The extension's developer cited the technical challenges and constant cat-and-mouse game as reasons for the decision, leaving users with fewer options to avoid ads on the platform.
Facebook ads are so hard to block that uBlock Origin stopped filtering them.
- akersten
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.
- whywhywhywhy
The approach they should have taken is to start whitelisting the components that are not ads.
Think of how the structure of Meta is gonna work, there's some team in charge of ads who has a sub team now in charge of messing with the ads to stop them being blocked.
If you start whitelisting everything that isn't an ad you move the problem into an area the team in charge of blocking the ads don't have control over.
Highly unlikely the team in charge of stopping ad blocking has swing to then start changing the code of every other element on the page to break your non-ad white listing.
- drnick1
Blacklisting facebook.com at the DNS level has worked pretty well for me.
- aanet
Controversial opinion:
This entire thread reads like a game of cat-and-mouse. People trying to block intrusive ads, and FB reaching into the depths of code and making it nearly impossible for anyone to do so en masse.
I've been there. Tried to uncheck all the boxes on their ad platform; used all manners of ad blockers, etc; used incognito mode; used Tor; etc. etc. etc.
At some point, you realize that the only way to not get served ads on Facebook -- and thereby not benefit the company itself -- is to get rid of it completely. Delete your account, get off that blasted site, and enjoy some moments of peace IRL.
Having been a very early adopter of FB (since ~2004), I deleted my account and am clean + sober + much happier since 2016.
(Not to say that I'm completely out of the FB ecosystem. Unfortunately, my fam is still on WhatsApp... and I've been trying to convince them to migrate to Signal...)
YMMV
- pavel_lishin
I've tried to write a tampermonkey script to at least block the Reels, but even that's hella difficult.
The solution is truly to just never be on Facebook, but - our local PTA only distributes news via Facebook. (There may be a Whatsapp group I don't know about, which isn't better.) So does the local library. If the township publishes things elsewhere, I don't know about it.
I use a service to convert some pages' feeds to RSS, which is semi-reliable, but doesn't work well and is a paid service if you want more than two feeds - I wish I could hand-roll something myself.
- VCFundedGenYer
Facebook is trying so hard to defeat adblockers that the actual website is borderilne unusable. I have found in the past year or so that pages just get hung on "loading" transitional screens way more often, even in normal circumstances.
They need to surrender this whole anti-adblocker crusade because it will kill them in the long run (along with the billion other problems FB has)
- The-Old-Hacker
I use a browser extension called F.B. Purity. It's worked across multiple browsers for years.
- jcfrei
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.