Created
December 3, 2021 18:20
-
-
Save GrzegorzManiak/bcb37917ab552c66004bb15ad33c47f0 to your computer and use it in GitHub Desktop.
Removes the annoying popup on Wikipedia asking for donations using Tamper Monkey
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 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(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.