Jump to content

User:Daelin/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.
// Filter changes live
// [[User:Lupin/recent2.js]] - please include this line
mw.loader.load(
             'https://wiki.riteme.site/w/index.php?title=User:Lupin/recent2.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');


// Signature fix.
// From [[User_talk:Lupin/archive4]]
function sigFix () {
document.getElementById("toolbar").innerHTML=document.getElementById("toolbar").innerHTML.replace('--~~' + '~~','&mdash;[[User:Daelin|Daelin]]&nbsp;@&nbsp;<tt>{{subst:' + 'CURRENTYEAR}}&ndash;{{subst:' + 'CURRENTMONTH}}&ndash;{{subst:' + 'Twodigit {{subst:' + 'CURRENTDAY}}}}&nbsp;{{subst:' + 'CURRENTTIME}}Z</tt>');
}

function reformatMyPage() {
  sigFix();
}

if (window.addEventListener) window.addEventListener("load",reformatMyPage,false);
else if (window.attachEvent) window.attachEvent("onload",reformatMyPage);