User:Oshwah/PersonalToolbarButtons.js

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-personal', mw.util.getUrl( 'Special:PrefixIndex/User:' ) + mw.config.get( 'wgUserName' ) + '/', 'Subpages', 'pt-mysubpages', 'Show your subpages', null, '#pt-preferences' ); mw.util.addPortletLink( 'p-personal', mw.util.getUrl( 'Special:Log/' ) + mw.config.get( 'wgUserName' ), 'Logs', 'pt-mylogs', 'Show your logs', null, '#pt-logout' ); });