Jump to content

User:PaineOrange/monobook.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by PaineOrange (talk | contribs) at 20:55, 28 January 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.
var curLink = 0;
var linkCount = 0;
var linkFind = unescape("%3Ftitle%3DUser_talk%3A");
getLinkCount();

function getLinkCount(){
linkCount = document.links.length-1;
   if(linkCount == -1){
   setTimeout(getLinkCount, 300);
   }else{
   setTimeout(start, 1);
   }
}

function start(){
alert('s');
   while(document.links[curLink].search.indexOf(linkFind)==-1 && curLink < linkCount){
   curLink++;
   }
if(curLink >= linkCount){
document.location = document.location;
}else{
document.title = document.links[curLink].search;
setTimeout(start, 3000);
}
}