Skip to content

Why is subscriber.js running on a domain with no filter-subscription links? #3163

Answered by gorhill
Rudxain asked this question in Q&A
Discussion options

You must be logged in to vote

Because of https://github.com/gorhill/uBlock/blob/1.56.0/platform/chromium/manifest.json#L53-L68.

A lot of 3rd-party filter lists are hosted on GitHub, and the maintainers of these filter lists like to have users be able to subscribe to their lists by just clicking on them.

The /js/scriptlets/subscriber.js content script is injected on these domains unconditionally because there is no way to know that a webpage at any of those domains contains subscription link without injecting the content script in the first place. The content script used to bail out immediately if it didn't find subscription links, but this didn't work for sites which update dynamically, such as https://filterlists.com/.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rudxain
Comment options

Answer selected by Rudxain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants