User:Apoc2400/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// [[User:Lupin/popups.js]]

// importScript('User:Lupin/popups.js');

// [[User:Krimpet/CH2.js]]
importScript('User:Fran Rogers/CH2 en.js');

// Furme
importScript('User:AzaToth/morebits.js');
importScript('User:AWeenieMan/furme.js');

// Admin highlight
importScript('User:Ais523/adminrights.js');


//importScript('User:Mr.Z-man/refToolbar.js');
//importScript('User:Apoc2400/refToolbar.js');
//importScript('User:Apoc2400/refToolbarPlus.js');
//mw.loader.load( 'http://localhost:8080/testingjs/refToolbarPlus.js' );

mw.loader.load( 'http://localhost:8080/testingjs/pass.js' );
//importScript('User:Odie5533/SnipManager.user.js');


importScript('User:Lightmouse/monobook.js/script.js');

/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.org/wiki/TemplateScript
 * @update-token [[File:pathoschild/templatescript.js]]
 */
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
	pathoschild.TemplateScript.add([
		{
			name: 'Change # to number',
			script: function(editor) {
				editor
					.replace(/ # ?(\d)/g,' number $1')
					.setEditSummary('Replaced "#" with "number "')
					.clickDiff();
			}
		},
		{
			name: 'Change # to issue',
			script: function(editor) {
				editor
					.replace(/ # ?(\d)/g,' issue $1')
					.setEditSummary('Replaced "#" with "issue "')
					.clickDiff();
			}
		}
	]);
});

//importScript('User:Apoc2400/jstest.js');