User:StephanCom/monobook.js

// User:Lupin/popups.js

importScript('User:Lupin/popups.js');

// function openAdahLinks(kk) { var as = document.getElementsByTagName('a'); var k = 0; for (n=0; n<as.length; n++) { if (as[n].innerHTML == 'diff') { if (k <= kk) { window.open(as[n].href, '_blank'); }     k++; } } }

function addAdahLinks { if (wgCanonicalNamespace == 'Special' && wgCanonicalSpecialPageName == 'Watchlist') { var as = document.getElementsByTagName('a'); var k = 0; for (n=0; n<as.length; n++) { if (as[n].innerHTML == 'diff') { var tn = document.createTextNode(') ('); var link = document.createElement('a'); link.href = 'javascript:openAdahLinks(' + (k++) + ')'; link.appendChild(document.createTextNode('adah'), null); as[n].parentNode.insertBefore(tn, as[n].nextSibling.nextSibling); as[n].parentNode.insertBefore(link, as[n].nextSibling.nextSibling); }   }  } }

$(addAdahLinks);

//

function externISBN { for (var i = 0; i < document.links.length; i++) {                var ln = document.links[i].href.match(/isbn=(.*)/); if (ln) { document.links[i].href='http://www.amazon.com/exec/obidos/ASIN/'+RegExp.$1; }    } } addOnloadHook(externISBN);

//

// install User:Cacycle/wikEd in-browser text editor document.write(' ');