// ==UserScript== // @name Magma Imageboard Ad removal // @namespace *chan // @description Hides advertising containers for certain *chans // *CHAN CATCH-ALL // @include http://*chan.*/* // ==/UserScript== function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } /* HIDE *CHAN SHIT */ addGlobalStyle('.ad-title {\n\tdisplay: none;\n}'); addGlobalStyle('.ad-text {\n\tdisplay: none;\n}'); addGlobalStyle('.ad-headline {\n\tdisplay: none;\n}'); addGlobalStyle('#bottomAdOuter {\n\tdisplay: none;\n}'); addGlobalStyle('#bottomAd {\n\tdisplay: none;\n}'); addGlobalStyle('.bottomAdTitle {\n\tdisplay: none;\n}'); addGlobalStyle('.bottomAdFoot {\n\tdisplay: none;\n}'); addGlobalStyle('#linjutsu-ad {\n\tdisplay: none;\n}'); addGlobalStyle('#ad {\n\tdisplay: none;\n}');