User:JJPMaster/afd.js

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-personal', mw.util.getUrl, 'ggg.js', 'pt-pagecuration', 'View your common.js', null, '#pt-preferences' ); });