User:MacFan4000/globalBlockLink.js

var user = mw.config.get( 'wgRelevantUserName' ); if( user !== null && mw.util.isIPAddress(user) ){ mw.util.addPortletLink(		'p-tb',		mw.util.getUrl( ( mw.config.get('wgDBname') === 'metawiki' ? '' : 'meta:' ) + 'Special:GlobalBlock/' + user ),		'Block Globally',		't-globalblock',		'Globally block this IP address'	); }