Skip to content

Instantly share code, notes, and snippets.

@mcrisc
Created November 27, 2011 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcrisc/1397602 to your computer and use it in GitHub Desktop.
Save mcrisc/1397602 to your computer and use it in GitHub Desktop.
User script that removes Wikipedia banners
// ==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