User:Manishearth/orphantabs.js: Difference between revisions

Content deleted Content added
removing my obnoxious debug alerts :P
No edit summary
Line 30:
 
if(otherOrphanTabs){
addPortletLink("p-cactions", wgServer + "/wiki/Special:WhatLinksHere/" + pgname, "ParentsWhatLinksHere", "ca-parents" , "What links here");
addPortletLink("p-cactions", wgServer + "/wiki/Special:WhatLinksHere/" + pgname, "Search it!", "ca-searchit" , "What links here");
 
 
addPortletLink("p-cactions", gServerPre + pgname + gServerPost, "De-orphanGoogle it!", "ca-de-orphangoogleit", "Find all Wikipedia pages with this page name in them");
}
addPortletLink("p-cactions","javascript:deOrphanWikify(prompt(\"What page are you de-orphaning?\",\"\"))", "De-orphan-wikify", "ca-de-orphan-wikify", "Wikify to deorphan another page");
 
addPortletLink("p-cactions", "javascript:initDeOrphan(prompt(\"What page\?\"\,\""+ ((wgCanonicalNamespace=="")?wgPageName:"")+"\"));", "De-orphan-complete", "ca-de-orphan", "Find all Wikipedia pages with this page name in them");
 
});
Line 54 ⟶ 55:
}
function initDeOrphan(pgName){
sWin = window.open(wgServer + "http://en.wikipedia.org/w/index.php?title=Special:Search&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&redirs=1&search=%22" + pgName + "%22&limit=100&offset=0","","")
deOrphanPgName = pgName
deOrphanProcessFirstCall=true