Page 1 of 3

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

Posted: Mon Nov 15, 2010 11:20 pm
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?

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

Posted: Tue Nov 16, 2010 10:22 pm
by Michael
The filter ||wikipedia.org/w/index.php?title=Special:BannerController should work (https://easylist.adblockplus.org/blog/2 ... ng-banners).

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

Posted: Tue Nov 16, 2010 10:34 pm
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.

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

Posted: Tue Nov 16, 2010 10:51 pm
by Michael
Taking into account all domains, I think that the filter ||wik*.org/w/index.php?title=Special:BannerController should work.

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

Posted: Wed Nov 17, 2010 12:06 am
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

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

Posted: Wed Nov 17, 2010 6:05 pm
by Michael
Thanks for letting me know; I have updated the blog post with the suggested filter.

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

Posted: Wed Nov 17, 2010 8:51 pm
by NikoB
I found out that in the last version of chrome, the best expression is:

Code: Select all

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

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

Posted: Sat Nov 20, 2010 7:23 am
by Thomas
How do I add that filter into chrome?
Thanks

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

Posted: Sat Nov 20, 2010 11:49 am
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?

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

Posted: Tue Nov 23, 2010 12:48 pm
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.

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

Posted: Tue Nov 23, 2010 6:37 pm
by Michael
The filter /w/index.php?title=*:bannercontroller should block the script responsible for the banner.

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

Posted: Tue Nov 23, 2010 11:53 pm
by superlazy
Thanks Michael! Your filter did the trick! That banner has been annoying me for weeks.

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

Posted: Thu Nov 25, 2010 11:03 am
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 !");
	}
}

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

Posted: Thu Nov 25, 2010 11:27 am
by dotancohen
Michael wrote:The filter /w/index.php?title=*:bannercontroller should block the script responsible for the banner.
Thank you, finally!

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

Posted: Thu Nov 25, 2010 1:14 pm
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