Page 1 of 1

Filter with regex for wiki banner

Posted: Thu Nov 24, 2011 9:35 pm
by HELOX
Could anyone help me out with this problem.

Let's put first that I really do like wikipedia. But that banner for donation is annoying me.

So I'm trying to get rid of it.

I want to block all Donation bars on all languages of wikipedia.

The thing that should be blocked is in this form:

Code: Select all

*.wikipedia.org###B11_Donate_*_AvsB
I figured out that it should be something like this:

Code: Select all

[a-zA-Z]{2}.wikipedia.org###B11_*
/\[a-za-z\]\{2}\.wikipedia\.org###b11_/
/\[a-za-z\]\{2}\.wikipedia\.org###b11_*/
But it does work unfortunately.

Could anyone help me out?

PS. I'm also very bad at regex. And now I can't really find good documentation for regex for Adblock Plus filters. Is this right or am I just nog able to find it?

Re: Filter with regex for wiki banner

Posted: Thu Nov 24, 2011 10:54 pm
by Ares2
From https://easylist.adblockplus.org/blog/2 ... ng-banners . Simply use:

Code: Select all

/w/index.php?title=*:bannercontroller
Also, just to be complete: Element Hiding Rules (identifyable by the two ##) do not support regular expressions in Adblock Plus. Blocking rules have legacy support for regular expressions, but their use is discouraged.