By Jeremy C
—
Last update
Sep 20, 2006
—
Installed
438 times.
// ==UserScript==
// @name Anandtech Junk Remover
// @author Jeremy Christian
// @date 2006-09-20
// @description Removes the ads and stuff
// @namespace (none)
// @include http://www.anandtech.com/*
// @include http://anandtech.com/*
// ==/UserScript==
// header
var ad = document.getElementById("topmarq");
ad.parentNode.removeChild(ad);
// footer
ad = document.getElementById("rightfooter");
ad.parentNode.removeChild(ad);
// footer
ad = document.getElementById("boxfooter");
ad.parentNode.removeChild(ad);
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);
}
//addGlobalStyle('#topmarq { display:none!important; }');
addGlobalStyle('.adcontainer { display:none!important; }');
addGlobalStyle('div#leftcolumn>div.atheader { margin-left:-3px; }');
addGlobalStyle('div#middlecontent>div.HeaderSurround>div, div#middlecontent>div.HeaderSurround>div>div, div#middlecontent>div.HeaderSurround>div>div>div { display:none!important; }');