User:NQ/sandbox2.js

//Makes identifying blocked editors instantaneous. importScript('User:NuclearWarfare/Mark-blocked script.js'); // Linkback: User:NuclearWarfare/Mark-blocked script.js

//Quick hack combiningUser:PleaseStand/User info and User:MastCell/user-rights.js to show time of registraton as well. importScript("User:Anna_Frodesiak/user-info.js"); // Linkback: importScript("User:PleaseStand/userinfo.js");

//always open diffs from history in a new window $(function { $("#mw-history-compare").attr("target", "_blank"); }); //something to do with saying a protection has been done importScript('User:Steel359/protection.js'); // Linkback: User:Steel359/protection.js // Add a deleted contributions link importScript('User:Anna Frodesiak/deletedcontribs.js'); // Linkback: User:Anna Frodesiak/deletedcontribs.js // Add an unwatch link to items on the watchlist importScript('User:Anomie/unwatch.js'); // Linkback: User:Anomie/unwatch.js // User:MusikAnimal/spamublock.js importScript('User:MusikAnimal/spamublock-toolbox.js'); // Linkback: User:MusikAnimal/spamublock-toolbox.js // SpamUserPage - see User:Mr. Stradivarius/gadgets/SpamUserPage for documentation. SpamUserPage = {}; // Don't remove this line! It is necessary for SpamUserPage settings. SpamUserPage.preset = "soablock"; SpamUserPage.menulocation = "p-tb"; // Put the "Delete and block" link in the Tools menu. SpamUserPage.menuposition = "#t-whatlinkshere"; // Put the "Delete and block" link just before the "What links here" link. // SpamUserPage.presets = [ {		id: "spamublock", template: " ~" },	{		id: "soablock", template: " ~" } ]; // importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: User:Mr. Stradivarius/gadgets/SpamUserPage.js // Reorder menus importScript('User:Anna Frodesiak/toolsfirst.js'); // Linkback: User:Anna Frodesiak/toolsfirst.js importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Linkback: User:Mr. Stradivarius/gadgets/Draftify.js // Add a link in the toolbox to a user's Commons uploads importScript('User:Mr. Stradivarius/gadgets/CommonsUploads.js'); // Linkback: User:Mr. Stradivarius/gadgets/CommonsUploads.js

//User:Theopolisme/Scripts/autocompleter importScript('User:Theopolisme/Scripts/autocompleter.js');

//Adds a ping template to the wiki toolbar var customizeToolbar = function { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {	'section': 'main',	'group': 'insert',	'tools': {		'ping': {			label: 'Ping!', 			type: 'button',			icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/67/BellOn_green.svg/22px-BellOn_green.svg.png',			action: {				type: 'encapsulate',				options: {				'pre': ""				}			}		}	} } ); };

if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) { mw.loader.using( 'user.options' ).then( function {		if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {			$.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar );		}	} ); }