Created
November 27, 2011 14:05
User script that removes Wikipedia banners
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Not today, Jimmy Wales! | |
// @namespace http://jau.org/userscripts | |
// @include http://*.wikipedia.org/* | |
// @include http://*.wikiversity.org/* | |
// ==/UserScript== | |
/* | |
Firefox: runs over GreaseMonkey or Scriptish | |
Chrome: runs over Tampermonkey | |
*/ | |
var BANNER_IDS = ['centralNotice', 'B11_Donate_Projects_AvsB', 'siteNotice']; | |
document.addEventListener("DOMNodeInserted", function() { | |
var i; | |
for (i=0; i < BANNER_IDS.length; i++) { | |
var banner = document.getElementById(BANNER_IDS[i]); | |
if (banner != null) { | |
banner.style.display = "none"; | |
} | |
} | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment