User:Lourdes/AfDstarted.js

/* This script adds an "AfDs Today" 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

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-personal', mw.util.getUrl('Wikipedia:Articles for deletion/Log/Today'), 'AfDs Today', 'pt-specialnew', 'View the AfD discussions that have been opened today', null, '#pt-preferences' ); });