User:Nigos/scripts/RecentChanges.js

This is an old revision of this page, as edited by Nigos (talk | contribs) at 09:49, 31 January 2018. 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 is used to add a link to Special:RecentChanges
   To use the script, add the following line to Special:MyPage/common.js:
 
importScript('User:Anchorvale/RecentChanges.js'); // Linkback: [[User:Anchorvale/RecentChanges.js]]

*/
 
$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:RecentChanges' ),
    'RecentChanges',
    'pt-Recent Changes'
    ,
    null,
    '#pt-preferences'
  );
});