Jump to content

User:RexNL/monobook.js

From Wikipedia, the free encyclopedia
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>*/