Filter with regex for wiki banner

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
HELOX

Filter with regex for wiki banner

Post 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?
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Re: Filter with regex for wiki banner

Post 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.
Locked