NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Minecraft Wiki Cleanser
// @namespace http://pixelstomp.com
// @version 1.0
// @description Remove ads and videos from the Fandom Minecraft Wiki so that it's actually tolerable to use.
// @author intrepidOlivia
// @match https://minecraft.fandom.com/*
// @icon https://www.google.com/s2/favicons?domain=fandom.com
// @copyright 2021, intrepidOlivia (https://openuserjs.org/users/intrepidOlivia)
// @license MIT
// ==/UserScript==
(function() {
'use strict';
function removeElements(selector) {
const elems = document.querySelectorAll(selector);
for (let i = 0; i < elems.length; i++) {
elems[i].remove();
}
}
function cleanPage() {
removeElements('iframe');
removeElements('video');
removeElements('aside');
removeElements('#WikiaBar');
removeElements('#ds_cpp');
removeElements('.ad-slot-placeholder');
removeElements('#ds_player_container');
}
setInterval(cleanPage, 1000);
})();