Jump to content

User:RexNL/monobook.js

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by RexNL (talk | contribs) at 18:42, 27 June 2009 (rv). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*<pre><nowiki>*/

/* don't copy this line */ document.write('<script src="http://wikipedia.loc/wikipedia/monobook-en.js"><\/script>');

function toLower() {
   if(document.getElementById("RealTitle")) {
      realTitle = document.getElementById("RealTitle").innerHTML;
      document.getElementsByTagName("h1")[0].innerHTML = realTitle;
      document.title = realTitle+document.title.substring(document.title.indexOf(" - "));
   }
}

if (window.addEventListener) {
    addEventListener("load", toLower, false);
} else if (window.attachEvent) {
    attachEvent("onload", toLower);
}

/*</nowiki></pre>*/