Jump to content

User:Haza-w/interiot.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tra (talk | contribs) at 20:28, 20 March 2012 (change edit counter link and syntax, per talk). 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.
// This script used to be much more complex,
// back in the days before wikibits!
// Now it's just a couple of lines of code...

$(document).ready(function() {
  mw.util.addPortletLink('p-personal','http://toolserver.org/~tparis/count/index.php?lang=en&wiki=wikipedia&name='+mw.util.rawurlencode(mw.config.get('wgUserName')),'My edit count','pt-editcount','View edit count',false,'#pt-logout');
  mw.util.addPortletLink('p-personal','http://toolserver.org/~tparis/editsummary/index.php?lang=en&wiki=wikipedia&name='+mw.util.rawurlencode(mw.config.get('wgUserName')),'My summary usage','pt-editsummaries','View edit summary usage',false,'#pt-logout');
});