User:Manishearth/orphantabs.js

This is an old revision of this page, as edited by Manishearth (talk | contribs) at 15:20, 11 August 2008 ( Created page with 'if(showParentsTab== null){ showParentsTab = true } if(showDeOrphanTab== null){ showDeOrphanTab = true } addOnloadHook(function () { var gServerPre; var gServerPost...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
if(showParentsTab== null){
showParentsTab = true
}
if(showDeOrphanTab== null){
showDeOrphanTab = true
}
addOnloadHook(function () {
var gServerPre;
var gServerPost;
gServerPre = "http://www.google.com/search?hl=en&rlz=1G1GGLQ_ENUS255&as_q="
gServerPost="&as_epq=&as_oq=&as_eq=&num=10&lr=&as_filetype=&ft=i&as_sitesearch=" + wgServer + "&as_qdr=all&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images"
var pgname = encodeURIComponent( wgTitle );
if(showParentsTab== true){
addPortletLink("p-cactions", wgServer + "/wiki/Special:WhatLinksHere/" + pgname, "Parents", "ca-parents" , "What links here");
}
if(showParentsTab== true){
addPortletLink("p-cactions", gServerPre + pgname + gServerPost, "De-orphan", "ca-de-orphan", "Find all Wikipedia pages with this page name in them"); 
}
});