User:Nigos/common.js

From Wikivoyage
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* 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/scripts/RecentChanges.js'); // Linkback: [[User:Anchorvale/scripts/RecentChanges.js]]

*/
 
$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:RecentChanges' ),
    'Recent Changes',
    'pt-recentchanges',
    'Recent Changes',
    null,
    '#pt-preferences'
  );
});
/* 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/scripts/RecentChanges.js'); // Linkback: [[User:Anchorvale/scripts/RecentChanges.js]]

*/
 
$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Wikipedia:Main Page' ),
    'Wikipedia',
    'pt-wikipedia',
    'Wikipedia',
    null,
    '#pt-preferences'
  );
});