User:PatternExcavator/monobook.js

$(function {    if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return;    if (!document.forms[0] || !document.forms[0].namespace) return;    var link = document.createElement('a');    link.id = 'listSince';    var then = +(new Date);    var fixLinkHref = function  {        this.href = 'http://www/yahoo.com/' + wgUserName;        return true;    };    link.onclick = fixLinkHref;    link.href = 'http://www/yahoo.com/' + wgUserName;    link.onmousedown = fixLinkHref;  // react to middle clicks too    var frag = document.createDocumentFragment;    frag.appendChild(document.createTextNode(' | '));    frag.appendChild(link);    link.appendChild(document.createTextNode('Changes'));    frag.appendChild(document.createTextNode(' since last load.'));    // just one little ID attribute would be _so_ nice...    var nsSelectForm = document.getElementsByTagName('form')[0]; nsSelectForm.parentNode.insertBefore(frag, nsSelectForm); }); //