Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
User script that removes Wikipedia banners
// ==UserScript==
// @name Not today, Jimmy Wales!
// @namespace
// @include http://**
// @include http://**
// ==/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) { = "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.