User:Glaisher/common.js

importScript( 'User:Shanmugamp7/userMessages.js' ); importScript( 'User:Glaisher/QuickSpamBlock.js' );

if ( mw.config.get( 'wgCanonicalSpecialPageName' ) == 'Recentchanges' ) { // Hide blocked users on RC	mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript'); mw.loader.using( 'oojs-ui' ).done( function {		var button = new OO.ui.ButtonWidget( { label: 'HideBlocked' } );		button.on( 'click', function  { $( '.user-blocked-indef' ).closest( 'li' ).hide; } );		$( '.mw-recentchanges-table' ).append( button.$element );	} ); }