MediaWiki:Gadget-blocktab.js

jQuery( document ).ready (function {	var ns = mw.config.get( 'wgNamespaceNumber' );	if ( ns != "2" && ns != "3" ) {		return; // restrict to User and User talk	}

var title = mw.config.get( 'wgTitle' );

mw.util.addPortletLink(		'p-cactions',		'/wiki/Special:Block/' + title,		'Block', 't-blockip', 'Block "' + title + '"'	); });