I have a filter
site.com##div[id="xxxxx"][style="display: block;"]
And it works repfectly with an element like this:
<div style="display: block;" id="xxxxx">
But when i try to use some regexp, like:
site.com##div[id="*"][style="display: block;"] or
site.com##div[id=*][style="display: block;"] or
site.com##div[id="?xxxx"][style="display: block;"]
and so on, this filter not blocks and add. Could some1 point at my mistake, where i go wrong?
Also, i'd want to use an exception for some ads, but with @@||, placed be4 the original filter, it keeps blocking.
Use regexp within some div values
Re: Use regexp within some div values
Element-hiding exceptions use #@# instead of ##, and @@ is just for ordinary exception rules.
Element-hiding rules do not use regular expressions: Instead, whatever comes after the ## or #@# must be a valid CSS selector, so you could try something like
[id^="x"] (starts with)
[id$="xx"] (ends with)
[id*="x"] (contains)
and I admit, this is a bit limiting.
Element-hiding rules do not use regular expressions: Instead, whatever comes after the ## or #@# must be a valid CSS selector, so you could try something like
[id^="x"] (starts with)
[id$="xx"] (ends with)
[id*="x"] (contains)
and I admit, this is a bit limiting.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.