Jump to content

User:Lourdes/AfDstarted.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lourdes (talk | contribs) at 03:04, 17 January 2017 (create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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 Started" link to the top toolbar that gives the list of AfDs opened today.
   It is primarily designed for AfD regulars who prefer to directly review the deletion discussions
   that have opened today. To use the script, add the following line to Special:MyPage/common.js:
 
importScript('User:Lourdes/AfDstarted.js'); // Linkback: [[User:Lourdes/AfDstarted.js]]

*/
 
$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.wikiGetlink('Wikipedia:List of AfDs opened today'),
    'AfDs Started',
    'pt-specialnew',
    'View the AfD discussions that have been opened today',
    null,
    '#pt-preferences'
  );
});