Adblocker bug handling exception rules in filter list

Slimjet bug reports
Post Reply
whileloop
Posts: 13
Joined: Mon Nov 23, 2015 1:44 am

Adblocker bug handling exception rules in filter list

Post by whileloop »

For element hiding exception rules in the user filter list, adblock produces CSS rule like this

Code: Select all

.....{ display: block !important; z-index: auto !important; }
and append it to the end of slimjet_adblocker_css_filter style element.

For element hiding exception rules in the subscribed filter lists, adblocker produces CSS rule like this

Code: Select all

.....{display: none !important; z-index: -31415}
which has wrong CSS style and become element hiding rule. So element hiding exception rules in the subscribed filter lists is not working.

If only the user filter list contains element hiding exception rules for current website, then the exception rules work as expected.

But if both the user filter list and the subscribed filter lists contain element hiding exception rules for current website, the rules in user filter list will be combined to the rules from the subscribed filter lists and produce wrong CSS rule which is the same as element hiding rule. So the exception rules for current website in user filter list won't work.


For example, in fanboy's "Social Networking Block List" contains

Code: Select all

.sharePanel
del.icio.us,soundcloud.com#@#.sharePanel
1) Login to https://del.icio.us/
2) Open developer tool
3) Search for element with "sharePanel" class
4) Look into the styles you will see two rules hiding the element. The lower one is the generic hiding rule. And the upper one is supposed to be the exception rule but became a hiding rule.


.

Post Reply