Skip to content

Instantly share code, notes, and snippets.

@GrzegorzManiak
Created December 3, 2021 18:20
Show Gist options
  • Save GrzegorzManiak/bcb37917ab552c66004bb15ad33c47f0 to your computer and use it in GitHub Desktop.
Save GrzegorzManiak/bcb37917ab552c66004bb15ad33c47f0 to your computer and use it in GitHub Desktop.
Removes the annoying popup on Wikipedia asking for donations using Tamper Monkey
// ==UserScript==
// @name wikipedia donation blocker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description We ask you, humbly: dont remind me again.
// @author github.com/GrzegorzManiak
// @match https://*.wikipedia.org/*
// @icon https://www.google.com/s2/favicons?domain=wikipedia.org
// @grant none
// ==/UserScript==
//Execute when the page loads
window.addEventListener('load', function() {
//Message box that shows on the top of every page
let inlinePopUp = document.getElementById('frb-inline');
if(inlinePopUp) inlinePopUp.remove();
//popup that appears when you make your tab narrow
let mobilePopUp = document.getElementById('frb-nag');
if(mobilePopUp) mobilePopUp.remove();
});
@Osahashi
Copy link

Osahashi commented Dec 3, 2021

Thanks, I was looking for something like this a few days ago, the banner is so annoying. I could not install the script directly in Tampermonkey, usually it works when I open it as RAW, but this did not work with yours. Have it then installed via URL and that went smoothly. No idea what the reason is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment