MediaWiki:Gadget-blockuser.js

/* Adds a tab on userpages to Special:BlockUser */ ( function {	$(document).ready(function {

// Only show if MediaWiki shows it in the toolbox as well (so not outside user/user_talk namespace etc.) if ( !$( '#t-blockip a' ).length ) { return; }

var tbPortlet = $( '#t-blockip a' ); var params = '?wpExpiry=infinite&wpDisableEmail=1&wpDisableUTEdit=1&wpReason=Spamming%20links%20to%20external%20sites'; mw.util.addPortletLink( 'p-cactions', tbPortlet.prop('href') + params, tbPortlet.text, 'ca-block', tbPortlet.text ); });

} );