User:Nigos/scripts/RecentChanges.js

Source: Wikipedia, the free encyclopedia.
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:Nigos/scripts/RecentChanges.js');

*/

// Adapted from User:Omni Flames/PendingChangesLink.js
// You can also access Recent Changes by clicking on the “recent changes” link under “interaction” on the side of the Wikipedia page.
 
$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:RecentChanges' ),
    'Recent Changes',
    'pt-recentchanges',
    'Recent Changes',
    null,
    '#pt-preferences'
  );
});
/*

[[Category:Wikipedia scripts]]

*/