Jump to content

User:Minesweeper.007/page tools.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Secretlondon (talk | contribs) at 14:05, 6 April 2007 (moved User:Darkest Hour/page tools.js to User:Razorclaw/page tools.js: Automatically moved page while renaming the user "Darkest Hour" to "Razorclaw"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
 function pagetools() {
  if(document.getElementById('t-whatlinkshere')) { 
    addPortletLink('p-cactions', document.getElementById('t-whatlinkshere').firstChild.href,'What links here','ca-whatlinkshere');
    if((wgNamespaceNumber==2)||(wgNamespaceNumber==3)) addPortletLink('p-cactions', document.getElementById('t-whatlinkshere').firstChild.href.replace(/Whatlinkshere/,'Prefixindex') + '/','Subpages','ca-subpages');
    }
 }
 addOnloadHook(pagetools);