Disabling a whitelist element filter

Discussion of topics related to ad blocking.
Locked
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Disabling a whitelist element filter

Post 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?
User avatar
smed79
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 »

Code: Select all

oxforddictionaries.com##.banner,important
oxforddictionaries.com##.banbox,important
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
intense
Contributor
Contributor
Posts: 10494
Joined: Wed Mar 27, 2013 9:56 am

Post 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
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post by gotitbro »

Could be a bug, all the filters work for me too.
intense
Contributor
Contributor
Posts: 10494
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

Yes, as I wrote above I already notified gorhill.
User avatar
smed79
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 »

$generichide option is a network filter?
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
intense
Contributor
Contributor
Posts: 10494
Joined: Wed Mar 27, 2013 9:56 am

Post 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.
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post by gotitbro »

So, currently there is no way of overriding whitelist element filters in ad blockers?
intense
Contributor
Contributor
Posts: 10494
Joined: Wed Mar 27, 2013 9:56 am

Post 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
User avatar
smed79
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 »

in Adblock Plus

Image

Image
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
-Mark-
Postaholic
Postaholic
Posts: 382
Joined: Tue Jul 05, 2016 7:46 pm

Post 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.
Locked