User:Lunboks/global.js

(function {	"use strict";

function removeClass(cls) { var elems = document.getElementsByClassName(cls);

for (var i = elems.length - 1; i >= 0; i--) { if (elems[i]) { try { elems[i].parentNode.removeChild(elems[i]); } catch (ignore) {} }		}	}

function removeAds { removeClass("wikia-ad"); removeClass("featured-video__wrapper"); removeClass("featured-video"); }

window.addEventListener("load",            removeAds); window.addEventListener("DOMContentLoaded", removeAds);

removeAds; });