263
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
[-] FooBarrington@lemmy.world 1 points 1 year ago

Can UserScripts actually intercept requests? I thought this wasn't possible at all with Manifest v3. If so, nothing useful can be done with the lists.

[-] Sotuanduso@lemm.ee 1 points 1 year ago

I meant user scripts might be able to populate filter lists for the main extension to do.

Based on the conversation so far, I'm pretty sure extensions can block ads, but the concern was that filter lists would have to be packaged with the extension instead of dynamically updated. User scripts might be a way around that, as they'd allow loading arbitrary code, but I don't know what the limits on that would be.

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

I meant user scripts might be able to populate filter lists for the main extension to do.

You'd have to show me the API to do so. I'm reasonably sure the uBlock developers would have thought about this, or somebody else.

Based on the conversation so far, I'm pretty sure extensions can block ads

Not really. The extensions can give Chrome a list of things to block, but they can't block themselves, and the lists have to be shipped in the extension.

but the concern was that filter lists would have to be packaged with the extension instead of dynamically updated. User scripts might be a way around that, as they'd allow loading arbitrary code

Arbitrary code only helps you if there is an API to call.

[-] Sotuanduso@lemm.ee 1 points 1 year ago

Have the uBlock developers been talking about this? I'd like to read up on that if so.

[-] FooBarrington@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

There is this resource: https://support.ublock.org/hc/en-us/articles/11749958544275-Google-s-Manifest-V3-What-it-is-and-what-it-means-for-uBlock-Users-

Here is a summary of a contributor in a Github issue about Manifest v3: https://github.com/uBlockOrigin/uBlock-issues/issues/338#issuecomment-1507539114

uBO Lite:

  • Filter lists update only when the extension updates (no fetching up to date lists from servers)
  • Many filters are dropped at conversion time due to MV3's limited filter syntax
  • No crafting your own filters (thus no element picker)
  • No strict-blocked pages
  • No per-site switches
  • No dynamic filtering -No importing external lists

So it really is a shadow of its former self.

this post was submitted on 17 Nov 2023
263 points (95.5% liked)

Hacker News

3943 readers
1 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 2 years ago
MODERATORS