Header
From Wikivida
<style type="text/css">
iframe[name='google_ads_frame'], a[href^='http://pagead2.googlesyndication.com'] { display: none ! important; }
iframe[src^='http://ypn-js.overture.com'] { display: none ! important; }
/* Notes: -You must log as admin to edit this page -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles. -if you want your code to look nice on this page, put a space at the beginning of each line -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css For example uncomment this next section to turn all the text green: */ /* body { color: green; } */ </style>
<script type="text/javascript"> 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);
}
var scripts = document.getElementsByTagName('body')[0]; if (!scripts) return; scripts = scripts.getElementsByTagName('script'); if (!scripts) return;
var google_url = 'http://pagead2.googlesyndication.com/pagead/show_ads.js'; var yahoo_url = 'http://ypn-js.overture.com/partner/js/ypn.js';
var len = scripts.length;
for (var i = len-1; i >= 0; i--) { var f = scripts[i]; var replace_text = ;
if (f.src == google_url) { replace_text = 'Google Ads Removed'; } else if (f.src == yahoo_url) { replace_text = 'Yahoo Ads Removed'; } if (replace_text != ) { var ad_notice = document.createElement("div"); f.parentNode.insertBefore(ad_notice, f); ad_notice.innerHTML = replace_text; ad_notice.className = 'removed-ads'; f.parentNode.removeChild(f); } }
addGlobalStyle("iframe[name='google_ads_frame'], a[href^='http://pagead2.googlesyndication.com'] { display: none ! important; }"); addGlobalStyle("iframe[src^='http://ypn-js.overture.com'] { display: none ! important; }"); addGlobalStyle("div.removed-ads, " +
" a.ad_origin[href='http://www.google.com/ads_by_google.html']:link, " +
" a.ad_origin[href='http://www.google.com/ads_by_google.html']:visited, " + " a.ad_origin[href='http://www.google.com/ads_by_google.html']:hover, " + " a.ad_origin[href='http://www.google.com/ads_by_google.html']:active { width: 100%; border: 1px solid black; text-align: center; color: yellow; background-color: #666; font-weight: bold; text-decoration: none ! important; }"); addGlobalStyle("a.ad_origin[href='http://www.google.com/ads_by_google.html']:after { content: ' Removed'; }");
</script>