Header
From Wikivida
(Difference between revisions)
Line 20: | Line 20: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | document. | + | window.onload=function(){ |
+ | (function() { | ||
+ | |||
+ | var RemoveGoogleAds = | ||
+ | { | ||
+ | checkPage: function() | ||
+ | { | ||
+ | currentDoc = document; | ||
+ | |||
+ | try { | ||
+ | if (currentDoc.getElementsByTagName("body")[0].innerHTML.match(/google_ads_frame/i)) | ||
+ | { | ||
+ | this.injectCSS("iframe[name='google_ads_frame'] { display: none; }"); | ||
+ | } | ||
+ | } | ||
+ | catch(e) {} | ||
+ | }, | ||
+ | |||
+ | |||
+ | injectCSS: function(css) | ||
+ | { | ||
+ | head = document.getElementsByTagName("head")[0]; | ||
+ | style = document.createElement("style"); | ||
+ | style.setAttribute("type", 'text/css'); | ||
+ | style.innerHTML = css; | ||
+ | head.appendChild(style); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | RemoveGoogleAds.checkPage(); | ||
+ | |||
+ | })(); | ||
+ | } | ||
</script> | </script> |
Revision as of 02:34, 27 October 2007
<style type="text/css"> /* 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; } */ aus { display: none } </style>
<script type="text/javascript"> window.onload=function(){ (function() {
var RemoveGoogleAds = { checkPage: function() { currentDoc = document;
try { if (currentDoc.getElementsByTagName("body")[0].innerHTML.match(/google_ads_frame/i)) { this.injectCSS("iframe[name='google_ads_frame'] { display: none; }"); } } catch(e) {} },
injectCSS: function(css) { head = document.getElementsByTagName("head")[0]; style = document.createElement("style"); style.setAttribute("type", 'text/css'); style.innerHTML = css; head.appendChild(style); } }
RemoveGoogleAds.checkPage();
})(); } </script>