User:Eumat114/RandomAfC.js

//Copied and modified from User:DannyS712/RandomAfC.js mw.loader.using( 'mediawiki.util', function {

// Wait for the page to be parsed $( document ).ready( function {     var link = mw.util.addPortletLink( 'p-personal', '#',   '(true) Random AfC', 'pt-truerandafc', 'Open a truly random AfC draft...', null, '#pt-preferences');   $( link ).click( function ( event ) { window.location ='//tools.wmflabs.org/RandomInCategory/Pending_AfC_submissions?site=en.wikipedia.org&cmnamespace=2|118&cmtype=page';} ); }); });