Jump to content

User:SPQRobin/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SPQRobin (talk | contribs) at 10:00, 27 June 2007 (Created page with '<pre><nowiki>: addOnloadHook(function() { if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1) //no subpages or history retur...'). 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.
/* <pre><nowiki> */
addOnloadHook(function() {
  if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history
     return;
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     var username = encodeURIComponent( wgTitle );
     addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + username, "Bijdragen", "ca-contrib", "Bijdragen van deze gebruiker");
     addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&page=User:" + username, "Logboeken", "ca-log", "Logboeken van deze gebruiker");
  }
});

/* </nowiki></pre> */