Replying to @⁨inari@piefed.zip⁩

Let me preface this by saying that I am generally against AI and I hate LLMs being pushed everywhere, but I currently hate facebook and social media even more than AI.

I think that ad blocking might actually be a good use of a model trained to detect ads: AI models are “black boxes” and it would make it difficult for facebook to find out precisely how the detection works and workaround it. Imagine a tiny classifier running locally, whose only job is to look at a post html or resulting rendered pixels and detecting if it’s an ad or not, and then generating the blocking rules.

It would be quite cool, because it would work on any website without an explicit list of ad-blocking rules that somebody needs to maintain.

Replying to @⁨Supercrunchy@programming.dev⁩

This was a thing long before the AI craze: ieeexplore.ieee.org/document/9152669

AdGraph differs from existing approaches by building a graph representation of the HTML structure, network requests, and JavaScript behavior of a webpage, and using this unique representation to train a classifier for identifying advertising and tracking resources… We evaluate AdGraph on the Alexa top-10K websites, and find that it is highly accurate, able to replicate the labels of human-generated filter lists with 95.33% accuracy, and can even identify many mistakes in filter lists.

They made a Chrome extension, in 2020: github.com/uiowa-irl/AdGraph

But practically, it’s tricky because:

  • It still needs to load and render the ads. Not undoable; Adnauseum does this, but its a much more performance-intense approach.

  • There’s always the risk of unpredictably blocking legitimate elements.

  • Image/text classifiers aren’t actually black boxes. Hence there were also adversarial measures against this… before the AI craze: web.cs.ucdavis.edu/~zubair/…/a4-acsac2021.pdf

At the end of the day, the whole point of uBO is to be lightweight and fast. You aren’t wrong about a machine-learning based approach, but its not really a fit for them IMO.

But.

I think a reasonable approach would be to have bots and agents generate adblocking rules, to be tested by humans, then shipped to users of various adblocking engines.

The engineering is far easier. Performance/latency constraints are minimal, 1 bot can maintain thousands of rules for millions of users, and it isn’t necessarily availible to reverse engineer, either.

Some adblock lists must do this, already. I know they already use some automation, but I don’t know the details TBH.

Replying to @⁨GreenBeard@lemmy.ca⁩

Yeah. I’m all for local inference, but to be clear, you can’t have a local agenic LLM as a Adblock browser plugin.

It’s also massively redundant. Why not just run the agent once and ship the rules to millions of users?

Text and image classification models are tiny, though. That’s definitely doable in an extension, albeit not worth the performance cost, IMO.

Also, there are already browser forks built for agenic usage.

If you want, say, generate UBO rules to use, this is the way to do it. Not hacked in as an extension.

Edited ⁨⁨Aug⁩ ⁨12⁩, ⁨2026⁩, ⁨16:30⁩⁩en