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 adds an "AfDs All" link to the top toolbar that gives the list of AfDs of past 7 days and more.
   It is primarily designed for AfD regulars who prefer to directly review the full list of AfDs
   To use the script, add the following line to Special:MyPage/common.js:
 
importScript('User:Lourdes/AfDList.js'); // Linkback: [[User:Lourdes/AfDList.js]]

*/
 
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl('Wikipedia:List of current and old AfDs'),
    'AfDs All',
    'pt-specialnew',
    'View the AfD listings of the past 7 days and more...',
    null,
    '#pt-preferences'
  );
});