-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$important option doesn't work if domains are not prefixed by || #954
Comments
The title might be bad, as a rule like |
|
The URL of the request which you expect uBO will block is:
In uBO,
This has been discussed in the past, see gorhill/uBlock#1065 (comment). Now the fact that it works with |
I was guessing as I wrote in there. The real reason is that So the best token uBO saw in the filter The filter |
So to conclude, the reported issue here is essentially a duplicate of gorhill/uBlock#1065. |
Is that list present since the beginning and why is this needed ? |
A list of bad tokens has been present since the first commit, which was simply guessed and manually entered. In this commit, it was expanded from a programmatically generated histogram (search for ABP adopted the idea in https://gitlab.com/eyeo/adblockplus/adblockpluscore/-/issues/30. "Bad tokens" are simply all the most frequent tokens from non-blocked URLs, so tokens which are not useful to use to store blocking filters. |
Ah, I wish I knew it earlier. So the rule would have worked IF the request was like /prebid. or /prebid-. As some users suggested in the past issues it may be worth being added to the syntax page of wiki. Sorry for the duplicate, I thought it to be a matter of $important option. |
Prerequisites
Description
$important option does not override exception filters unless its prefixed by ||example.com, in other words a rule like
/path/ads$important,domain=example.com|example.org
doesn't override the exception and this behavior is not explained in wiki.
A specific URL where the issue occurs
https://9to5mac.com/
Steps to Reproduce
/wp-content/*/prebid$script,important,domain=9to5google.com|9to5mac.com|9to5toys.com|electrek.co|dronedj.com
added to My Filters and also logger opened.
||9to5mac.com/wp-content/*/prebid$script,important
it will be blocked.
Expected behavior:
$important should override any exception.
Actual behavior:
Stated
Your environment
The text was updated successfully, but these errors were encountered: