User:Leduyquang753/Gadget-customButtons.js

// function addExtraButtons { mw.toolbar.addButtons(	{		imageId: 'button-sign',		imageFile: 'https://d1u5p3l4wpay3k.cloudfront.net/minecraft_gamepedia/2/22/Icon_sign.png?version=bb64f20227d758f57b27480ea96f6f39',		speedTip: 'Sign',		tagOpen: ,		tagClose: ,		sampleText: ''	}	); }

$(function {	// This can be the string "0" if the user disabled the preference (52542)	if ( mw.user.options.get( 'usebetatoolbar' ) != 1 && mw.user.options.get( 'showtoolbar' ) == 1 ) {		$.when( mw.loader.using( 'mediawiki.toolbar' ), $.ready ).then( addExtraButtons );	} }); //