Page 1 of 1
Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 12:24 pm
by gotitbro
Does anyone know if whitelisted element filters (
#@#
) can be overridden/disabled. For example, I am trying to override these filters in
uBlock filters – Unbreak:
Code: Select all
oxforddictionaries.com#@#.banbox
oxforddictionaries.com#@#.banner
Can I override without disabling the whole list?
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 1:07 pm
by smed79
Code: Select all
oxforddictionaries.com##.banner,important
oxforddictionaries.com##.banbox,important
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 1:37 pm
by intense
important
is dedicated only to the network filters
https://github.com/gorhill/uBlock/wiki/ ... #important
Your filter is working only by chance (or ..a bug in uBo - I notified gorhill )
other working filters:
oxforddictionaries.com##.banner,abc
oxforddictionaries.com##.banner,fake
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 1:57 pm
by gotitbro
Could be a bug, all the filters work for me too.
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 1:58 pm
by intense
Yes, as I wrote above I already notified gorhill.
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 2:23 pm
by smed79
$generichide
option is a network filter?
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 2:26 pm
by intense
The filter option important
means to ignore all exception filters (those prefixed with @@)
However, it seems to be a bug as you can see / test.
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 2:29 pm
by gotitbro
So, currently there is no way of overriding whitelist element filters in ad blockers?
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 2:42 pm
by intense
@gotitbro
The filters above are a trick you can use to disable the exception filters.
I had the answer from
@gorhill
Not a bug, this is still a valid CSS selector made of two selectors. By using an element name which matches nothing (fake), the exception cosmetic filter won't match the cosmetic filter ##.banner. It's useful to use the comma once in a while to coalesce target elements into a single cosmetic filter, example:
https://github.com/uBlockOrigin/uAssets ... #L554-L555
Another trick to bypass an exception filter using the mentioned case:
oxforddictionaries.com##.banner.banner
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 2:46 pm
by smed79
in
Adblock Plus
Re: Disabling a whitelist element filter
Posted: Sun Jun 17, 2018 3:35 pm
by -Mark-
smed79 wrote: ↑Sun Jun 17, 2018 2:23 pm
$generichide
option is a network filter?
Yes and can be disabled by
$generichide,important
in uBO.