User:Manishearth/orphantabs.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 101:
currentLinkWin = window.open("about:blank","","")
currentLinkWin.___location.replace(wgServer+"/w/index.php?title=" + deOrphanDocumentLinkArray[linkACounter].replace(/\/wiki\//,"") + "&action=edit")
if(!currentLinkWin.addOnloadHook(function(){
currentLinkWin.onload=function(){
currentLinkWin.addOnloadHook(function () {
openALInnerFunct()
});
}else{
if(!currentLinkWin.onload=function(document.loaded){
currentLinkWin.addOnloadHook(function () {
openALInnerFunct()
});
}else{
openALInnerFunct()
 
}
 
function closeTheWindow(){
//alert("closing")
if(!currentLinkWin.addOnloadHook){
currentLinkWin.onload=function(){
currentLinkWin.addOnloadHook(function () {
closeTWInnerFunct()
});
}
}else{
if(!currentLinkWin.document.loaded){
currentLinkWin.addOnloadHook(function () {
closeTWInnerFunct()
});
}else{
closeTWInnerFunct()
}
}
 
}
function endOfLinkWins(){
alert("IT IS THE END!!!!!!!!!!")
}
function openALInnerFunct(){
if(currentLinkWin.wgCanonicalNamespace== ""){
currentLinkWin.deOrphanWikify(deOrphanPgName)
Line 111 ⟶ 150:
closeTheWindow()
}
});
}
function closeTWInnerFunct(){
 
function closeTheWindow(){
//alert("closing")
currentLinkWin.onload=function(){
currentLinkWin.addOnloadHook(function(){
currentLinkWin.close()
linkACounter++
Line 127 ⟶ 160:
}
 
})
}
function endOfLinkWins(){
alert("IT IS THE END!!!!!!!!!!")