Jump to content

User:PaineOrange/monobook.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m ?
 
No edit summary
Line 14: Line 14:


function start(){
function start(){
while(document.links[curLink].search.indexOf(linkFind)==-1 && curLink < linkCount){
while(curLink < linkCount){
curLink++;
curLink++;
}
}
alert(curLink);
alert(linkCount);
document.title = document.links[curLink].search
document.title = document.links[curLink].search
}
}

Revision as of 20:41, 28 January 2007

var curLink = 0;
var linkCount = 0;
var linkFind = "action=edit"
getLinkCount();

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

function start(){
   while(curLink < linkCount){
   curLink++;
   }
alert(curLink);
alert(linkCount);
document.title = document.links[curLink].search
}