User:Gryllida/js/showNukeLinkInBlockPage.js

/* Author : Svetlana Tkachenko svetlana@members.fsf.org This file is a part of showNukeLinkInBlockPage.js Licence: GPLv3+ Description: [beta] shows a link to mass block at Special:Block page See also . // == Check whether we are blocking a user == var thisPageTitle = mw.config.get( 'wgPageName' ); // == Retrieve and show this user's contributions == if (thisPageTitle.indexOf('Special:Block') === 0){ var a = $('', {		href: "http://en.wikinews.org/wiki/Special:Nuke/$1".replace('$1', mw.config.get( 'wgRelevantUserName' )),		text: 'mass delete'	}); $('.mw-ipb-conveniencelinks').prepend(' | '); $('.mw-ipb-conveniencelinks').prepend(a); }