How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

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

How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by diamondfrog »

The banner ads that show up atop every Wikipedia page now with the "Please read: A personal appeal from Wikipedia founder Jimmy Wales" drive me nuts. I tried blocking them several ways but so far have had no success. My first try only blocked the image, not the banner ad itself or the text (screenshot: link) and my second try screwed up all the Wikipedia pages (screenshot: link). I googled around for a solution but the only filter results I found to block the wiki banners are from 2007/2008 so they're outdated by now. So how can I block the Wikipedia banners once and for all?
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Michael »

The filter ||wikipedia.org/w/index.php?title=Special:BannerController should work (https://easylist.adblockplus.org/blog/2 ... ng-banners).
Wikiresu

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Wikiresu »

The best I have found is a filter rule that hides the banner picture and leaves only text and a black baground. The rule is:

Code: Select all

/centralnotice/
Now that the picture is gone I can look a wikipedia page again without getting annoyed and angry.

I have donated 100USB to Wikimedia foundation before, but because of this annoying campaign I will probably not do it again. However I will continue to contribute as an editor.
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Michael »

Taking into account all domains, I think that the filter ||wik*.org/w/index.php?title=Special:BannerController should work.
Wikiresu

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Wikiresu »

Almost there! The word "Special" may differ in various languages. This worked for me:

Code: Select all

||wik*.org/w/index.php?title=*:BannerController
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Michael »

Thanks for letting me know; I have updated the blog post with the suggested filter.
NikoB

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by NikoB »

I found out that in the last version of chrome, the best expression is:

Code: Select all

*wikipedia.org/*##div[id="siteNotice"]
Thomas

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Thomas »

How do I add that filter into chrome?
Thanks
User avatar
Moskoe
Posts: 13
Joined: Tue May 11, 2010 11:57 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Moskoe »

I have simply closed the banner (there is a cross in the upper right corner) and the ad is gone (and cookies added).. Does it work for you?
dotancohen
Posts: 3
Joined: Tue Nov 23, 2010 12:39 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by dotancohen »

Moskoe wrote:I have simply closed the banner (there is a cross in the upper right corner) and the ad is gone (and cookies added).. Does it work for you?
It closes the banner, but on the next pageview the banner is back. We'd like to remove it permanently.

Like Wikiresu, have donated to Wikipedia in the past (twice actually, but less). But I certainly won't donate so long as that banner is there begging. In fact, one of the reasons that I stopped using GnomeDo was because of the annoying Donate button in the menu. I'd rather buy software and be done with it rather than be begged at each time I use it.
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Michael »

The filter /w/index.php?title=*:bannercontroller should block the script responsible for the banner.
superlazy
Posts: 1
Joined: Tue Nov 23, 2010 11:52 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by superlazy »

Thanks Michael! Your filter did the trick! That banner has been annoying me for weeks.
Snappy

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by Snappy »

@autor=Snappy

i just made this script ...

next time Jimmy Wales appear copy and paste the following code in your URL and hit enter

Code: Select all

javascript:
var values = document.cookie.split('=');
for(var i = 0; i<values.length; i++){
	if(values[i]=="hidesnmessage"){
		if(values[i+1]=="10"){
			alert("No need to re-run");
			break;
		}
		alert("You are not seeing Jimmy Wales\n"
		+ "run this script when he appear !");
		break;
	}else{
		void(document.cookie='hidesnmessage=10; expires=Monday, 04-Apr-2015 05:00:00 GMT');
		alert("All Done !\n"+
		"you will never see Jimmy Wales again !");
	}
}
dotancohen
Posts: 3
Joined: Tue Nov 23, 2010 12:39 pm

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by dotancohen »

Michael wrote:The filter /w/index.php?title=*:bannercontroller should block the script responsible for the banner.
Thank you, finally!
tsuchan

Re: How to block Wikipedia banner ad? (Appeal from Jimmy Wales)

Post by tsuchan »

dotancohen wrote:
Michael wrote:The filter /w/index.php?title=*:bannercontroller should block the script responsible for the banner.
I guess it will work until somebody in Wikipedia changes that title.

In the end I made 2 rules to block all the .js files - what part of our Wikipedia user experience depends on JavaScript? I've never seen anything that needs it.

Filter:
http://wikipedia.org/*.js
http://*.wikipedia.org/*.js
Locked