There is a site containing a few DIVs, some of which are ads I'd like to hide. The problem is that all ads lack an id attribute while all normal elements have an id; however, neither Adblock nor CSS selectors seem to support negative matches.
So I thought I could work around this problem by using the following two filters:
Code: Select all
example.com#div(class=foo)
@@example.com#div(class=foo)(id^=)
This doesn't work. Is it possible to combine whitelisting and element hiding at all? Is there another way to do this (besides writing a greasemonkey script)?