User:PrimeHunter/My logs.js

/* This script adds a link saying "Logs" to Special:Log/username for your username. The link is placed before "Contributions" on all pages. To use the script, add the following line to Special:MyPage/common.js: importScript('User:PrimeHunter/My_logs.js'); // Linkback: User:PrimeHunter/My logs.js



$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-personal', mw.util.getUrl( 'Special:Log/' ) + mw.config.get( 'wgUserName' ), 'Logs', 'pt-mylogs', 'Show your log entries', null, '#pt-mycontris' ); });