Skip to content
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

Cosmetic filter does not work if exception for this filter or filter with negated domain exist in other list #388

gwarser opened this issue Jan 21, 2019 · 3 comments


Copy link

@gwarser gwarser commented Jan 21, 2019



  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
    • Your issue may already be reported.
  • I tried to reproduce the issue when...
    • uBlock Origin is the only extension
    • uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior


Element cannot be hidden by cosmetic filter if one of third party filter lists contains exception for this filter.
This can be cosmetic exception filter (#@#...), or hiding filter with negated domain (~...##...) which will not apply to our test page.

A specific URL where the issue occurs

Facebook icon in top right corner (.icon-facebook) cannot be hidden in "My filters"/"Polish Social Filters", because "AdGuard Social Media" list contains filter similar to this:,,

Steps to Reproduce

  1. select "AdGuard Social Media" list
  2. add to "My filters"
  3. visit

Expected behavior:

Facebook icon in top right corner should be hidden

Actual behavior:

Icon is not hidden

Your environment

  • uBlock Origin version: 1.17.4
  • Browser Name and version: Firefox 64, Chromium 71
  • Operating System and version: Linux


Internal discussion:
Simillar issue on ABP issue tracker: (other way around - generic blocking filter overrides filter with negated domain)
Original issue: MajkiIT/polish-ads-filter#11494


This comment has been minimized.

Copy link
Member Author

@gwarser gwarser commented Jan 21, 2019

This is by design behavior.

Workaround - use different selector.
In this example, one of:


This comment has been minimized.

Copy link

@krystian3w krystian3w commented Jun 9, 2019

network filters use same mechanism? #620

@uBlock-user uBlock-user added wontfix and removed fixed labels Jun 9, 2019

This comment has been minimized.

Copy link
Member Author

@gwarser gwarser commented Jun 9, 2019


this is also translated into:

@@||^$image? #388


Block all connections, except image


If something is blocked and it is image then allow it.

For network filters you have important option to override exceptions from other filter lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.