259
submitted 1 year ago by haxor@derp.foo to c/hackernews@derp.foo

There is a discussion on Hacker News, but feel free to comment here as well.

you are viewing a single comment's thread
view the rest of the comments
[-] Sotuanduso@lemm.ee 1 points 1 year ago

Why do you need to intercept requests to block ads? Why can't you just hide them on the page?

[-] FooBarrington@lemmy.world 1 points 1 year ago

There are multiple big advantages, but it's also kind of necessary to really block ads.

When a request is made to an ad location, you know exactly what it is. Once the ad has been injected into the DOM, you need to find a good heuristic that determines "this is an ad". This is very complex and can be easily circumvented by the developers. If uBlock started doing that with filter lists inside the extension, ad blocking would most likely fully stop working, since ad networks could really, really easily react to updates and slightly change their approach. This would also lead to many, many additional false positives.

And that's not to mention the unnecessary traffic and so on. There are good reasons no current ad blocker works like you describe.

this post was submitted on 17 Nov 2023
259 points (95.4% liked)

Hacker News

4091 readers
2 users here now

This community serves to share top posts on Hacker News with the wider fediverse.

Rules0. Keep it legal

  1. Keep it civil and SFW
  2. Keep it safe for members of marginalised groups

founded 1 year ago
MODERATORS