User:Manishearth/orphantabs.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 91:
var colorRectifier = "\""
//Just to return syntax highlighting to normal
sWin.close()
return allImpLinks;
}
Line 142 ⟶ 143:
var choice = confirm(linkAlreadyThere + " pages linked to " + deOrphanPgName + " before de-orphaning.\n" + howManyActuallyDeOrphaned + " pages were linked to " + deOrphanPgName + "\n" + (linkAlreadyThere + howManyActuallyDeOrphaned) + " pages link to " + deOrphanPgName + "now\n De-orphan? (Press cancel to tag the page with \'do-attempt\'.")
currentLinkWin = window.open("about:blank","","")
currentLinkWin.___location.replace(wgServer+"/wikiw/index.php?title=" + deOrphanPgName + "&action=edit")
if(!currentLinkWin.addOnloadHook){
currentLinkWin.onload=function(){
Line 163 ⟶ 164:
var val = currentLinkWin.editform.wpTextbox1.value
var returnVal = val
//Testing on my local computer
//LEFT OFF HERE (I'll do something here next)
}
 
Line 190 ⟶ 191:
}
 
}
 
 
 
 
function wikifyLinkWin(){
linkWin.document.editform.wpTextbox1.value = orphanRawWikify(pgName,linkWin.document.editform.wpTextbox1.value)
//linkWin.document.editform.submit()
}