in ,

1519197 – Add 1st Party Support for AdBlock Plus-style blocklists in Gecko / GeckoView, Hacker News

  

    

       

      

Open

                Bug                        Opened 1 year ago

I’m moving this to which I think is a better bugzilla component.

Component: General → Blocklist Implementation Product: Core → Toolkit
(In reply to Andrew Overholt [:overholt] from

comment # 1 )

I’m moving this to which I think is a better bugzilla component.

Sadly, different kind of blocking. Looks like this bugzilla component needs renaming but I

think this is the right place. Johann?

Component: Blocklist. Implementation → Tracking Protection

Flags: needinfo? (Jhofmann)

Product: Toolkit → Firefox

(In reply to Colin Lee from

comment # 0

User Agent: Mozilla / 5.0 (X

; Ubuntu; Linux x _ 74; rv: (0) Gecko / (Firefox /) 0

Steps to reproduce:

One of the Fenix ​​requirements revolves around adding more complete support for ad blocking.

What does “more complete support” mean exactly?

Our managers have asked that we add first-party support rather than integrating and leaning on existing third-party WebExtensions like uBlock Origin for this functionality. This means that someone will need to write code to parse AdBlock Plus-style lists and handle all of the features it supports, such as regex pattern matching, exceptions, and blocking only scripts, images, etc. from a given URL.

What’s the reasoning for not leaning on existing APIs for this? Can’t you write the equivalent of a system-addon for this purpose, if you want to support Ad-Blocking natively?

We have the URL-Classifier which powers things like Tracking Protection, so that’s very close to first-party ad-blocking support.

Baku, how much do you think it would take to evolve URL-Classifier to support AdBlock Plus-style lists?

As it is presented here, my personal opinion is that this is a waste of time given that we already have the WebExtension APIs.

I am proposing this feature as a Google Summer of Code project due to the relatively low number of dependencies involved and the fact we don’t have any resources allocated for it yet.

I think you’re underestimating the complexity of this task. Of course it depends on how it’s implemented but if we are talking about an effort similar to our existing Tracking Protection code then that’s not a GSoC project. Given that you would have it as a GSoC project I take it that this is not a high priority for your team?

Component: Tracking. Protection → Safe Browsing

Flags: needinfo? (jhofmann)

Flags: needinfo? (Colee) Flags: needinfo? (Amarchesini) Product: Firefox → Toolkit

Baku, how much do you think it would take to evolve URL-Classifier to support AdBlock Plus-style lists?

This project is definitely complex. Let me say why:

Flags: needinfo? (Amarchesini) → needinfo? (Dlee)

(In reply to Andrea Marchesini [:baku] from (comment # 4 )

basic list: I don’t know how much we support of wildcards or what is in section “Using regular expressions”. Dimi knows definitely more than me and I let him to answer.

(In reply to Johann Hofmann [:johannh] from

comment # 3

What does “more complete support” mean exactly?

There are vast differences between what the community supports for ad blocking and what the SafeBrowsing formats support. For an incomplete list of a few issues I’ve noticed, we lack: Support for ad URLs with Punycode characters Support for regular expressions

  • Support for CSS hiding
  • Support for per domain or per resource type exceptions
    1. In terms of user acceptance, it seems like Brave’s shield is well liked by users, so that might be a template to look at vs. something more invisible like uBlock Origin (hidden behind the hamburger menu in Fennec): (https://techcrunch.com/) / / 66 / brave-the-browser-with-built-in-ad-blocking-tries-again-on- android /

      There will be inevitable comparisons to Brave’s browser, as it seems to be the most popular Chromium based browser that aligns with ideals in the privacy / ad blocking crowd. Firefox, I think is still the most popular option, but if uBlock Origin is not going to be available (without WebExtensions support), the Brave model seems worth studying (at least the core needs to allow browsers like Fenix ​​to hook into).

      Just my 2 cents.

      Whiteboard: [geckoview:fenix:p2]

      Let’s please lose the conspiracy theories. Many comments are flat out wrong. There was one discussion where our team wanted ad blocking support and this bug was created to consider whether to obtain resources for some kind of solution. This has nothing whatsoever to do with anything google is doing. We haven’t made any decisions about the nature of a Fenix ​​solution yet.

      Is there still an interest in making this happen? If so, would you be willing to expand this feature to include the tools for making custom filters?

      Let me explain … I use adblock plus. For most people, they just subscribe to a list and never touch the settings again.

      However, I create custom filters. In fact, I often add multiple items to a list ever single day. However, the ability to create custom filters in adblock plus was completely lost when Firefox switched to webextensions. (To be clear, you can still create custom filters in adblock plus, but all of the tools that made it easy to do are gone now. It’s like Firefox with all of the dev tools removed; it will still work for regular users, but it is useless for developers.)

      Personally, I’m not sure what I will have to do without this feature … might have to go with waterfox.

      Adblock Plus As far as I know, adblock plus will never add back the tools for making filters. I told them about the missing features long ago. The original creator of the addon-on is long gone. The current developer, Wladimir Palant has indicated that he doesn’t work on the add-on much anymore. Furthermore, it seems that the current webextensions Adblock Plus

      might

      just be a modified copy of uBlock origin Since they are exactly alike in key areas.

      uBlock Origin ublock has managed to add a few tools for making filters; they are actually half decent, but it uses a more restrictive license than Firefox: GPL 3

      So, what tools do I mean? The old adblock plus contained an excellent tool for selecting elements on a page. This tool was not made by the adblock devs. It comes from an open source library available under a permissive MIT or BSD license.

        A tool where a user can right click on an image and then create a block list from that image’s url.

        A way to list all requests on that page (all images, all external files), so you can pick the right one and create a block list based on that.

          If you would be willing to expand this feature to also include the “dev tools” needed to create filter lists then I might be willing to help work out some of the details for whoever will be writing it.

        () (Read More)

      What do you think?

      Leave a Reply

      Your email address will not be published. Required fields are marked *

      GIPHY App Key not set. Please check settings

      They Rented Their Cars Out Online. Then Things Fell Apart, Hacker News

      We now know the effect of altitude on classic “Diet Coke and Mentos“ fountain, Ars Technica

      We now know the effect of altitude on classic “Diet Coke and Mentos“ fountain, Ars Technica