User:PaineOrange/monobook.js: Difference between revisions
Appearance
Content deleted Content added
PaineOrange (talk | contribs) m ? |
PaineOrange (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
function start(){ |
function start(){ |
||
while( |
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
}