Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.