User:Manishearth/orphantabs.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 106:
currentLinkWin = window.open("about:blank","","")
currentLinkWin.___location.replace(wgServer+"/w/index.php?title=" + deOrphanDocumentLinkArray[linkACounter].replace(/\/wiki\//,"") + "&action=edit")
 
currentLinkWin.setTimeout("
currentLinkWin.window.addOnloadHook(function () {
if(currentLinkWin.wgCanonicalNamespace== ""){
currentLinkWin.deOrphanWikify(deOrphanDocumentLinkArray[linkACounter])
currentLinkWin.document.editform.submit()
setTimeout(\"closeTheWindow()\",1000)
}else{
closeTheWindow()
}
});",10)
}