User:Lourdes/AfDclosing.js

/* This script adds an "AfDs Closing" link to the top toolbar that gives the list of AfDs closing today. It is primarily designed for AfD regulars who prefer to directly review the deletion discussions closing today. To use the script, add the following line to Special:MyPage/common.js: importScript('User:Lourdes/AfDclosing.js'); // Linkback: User:Lourdes/AfDclosing.js

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-personal', mw.util.getUrl('Wikipedia:List of AfDs closing today'), 'AfDs Closing', 'pt-specialnew', 'View the AfD discussions closing today', null, '#pt-preferences' ); });