User:MJL/UserAbuseLogs.js

// UserAbuseLogs // by MJL // Documentation at User:MJL/UserAbuseLogs // Script derived from User:Bellezzasolo/Scripts/subpages

var namespace = mw.config.get( 'wgCanonicalNamespace' ); //As suggested by User:DannyS712 if ( namespace === 'User' || namespace === 'User_talk' ) { $.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-tb', mw.util.getUrl( 'Special:AbuseLog' ) + '?wpSearchUser=' + mw.config.get( 'wgRelevantUserName' ), 'Abuse Logs', 'pt-abuselogs', 'Instances this user triggered an edit-filter', null, '#pt-preferences' ); }); }

//