I'm trying to hide elements with #div(id*=ad) except elements with #div(id*=head) and #div(id*=advanced).
Is there a way of specifying a 'not containing' somehow?
It would be nice to get rid of the ads only, not the headers or the most interesting stuff of the page.
Otherwise like Adblock Plus a lot.
Element hiding with exceptions
Well, the pages I'm trying to clean up contain id=containerAdLeft, frameCenterAd, and others like that. I'd sure like to shake the creators hand for such a wide diversity.
I'm still going to approach the blocking with such a definition, if I only can enter the 'but not' part. Is it possible?
e.g.
somewhere.com#div(id*=ad)(id*!=head)(id*!=advanced)
I'm still going to approach the blocking with such a definition, if I only can enter the 'but not' part. Is it possible?
e.g.
somewhere.com#div(id*=ad)(id*!=head)(id*!=advanced)
Ah, this is possible:
But it is important to use a domain name in front of this rule. Without it, this would be way too generic.
Code: Select all
somewhere.foo##div[id*="ad"]:not([id*="head"]):not([id*="advanced"])