Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * Ajax sysop
 * @see https://meta.wikimedia.org/wiki/Ajax_sysop
 * @update-token [[File:pathoschild/ajaxsysop.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');

importScript('User:Mercy/mass_rollback.js');

// --------- custom edit toolbar ---------
if($.wikiEditor) {
	$('#wpTextbox1').wikiEditor('addToToolbar', {
		section: 'main',
		group: 'format',
		tools: {
			"custom-welcome": {
				label: 'Welcome',
				type: 'button',
				icon: '//upload.wikimedia.org/wikipedia/commons/c/cb/Button_Nuvola_apps_ksirc.png',
				action: {
					type: 'encapsulate',
					options: {
						pre: "\x7b\x7bsubst:Welcome",
						post: "}}"
					}
				}
			},
			"custom-test": {
				label: 'test',
				type: 'button',
				icon: '//upload.wikimedia.org/wikipedia/commons/b/b0/EXPBT1.png',
				action: {
					type: 'encapsulate',
					options: {
						pre: "\x7b\x7bsubst:test}}--\x7E\x7E\x7E\x7E",
						post: ""
					}
				}
			},
			"custom-test2": {
				label: 'test2',
				type: 'button',
				icon: '//upload.wikimedia.org/wikipedia/commons/a/ae/EXPBT2.png',
				action: {
					type: 'encapsulate',
					options: {
						pre: "\x7b\x7bsubst:test2}}--\x7E\x7E\x7E\x7E",
						post: ""
					}
				}
			},
			"custom-spam": {
				label: 'Spam',
				type: 'button',
				icon: '//upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png',
				action: {
					type: 'encapsulate',
					options: {
						pre: "\x7b\x7bsubst:Spam}} Best regards, --\x7E\x7E\x7E\x7E",
						post: ""
					}
				}
			},
			"custom-offtopic": {
				label: 'offtopic',
				type: 'button',
				icon: '//upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png',
				action: {
					type: 'encapsulate',
					options: {
						pre: "\x7b\x7bsubst:offtopic",
						post: "}}"
					}
				}
			}
		}
	});
}
mw.loader.load('//toolserver.org/~erwin85/SBHandler.js');