User:Bequw/CustomToolbar.js

Note – after saving, you may have to bypass your browser’s cache to see the changes.

  • Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh);
  • Konqueror and Chrome: click Reload or press F5;
  • Opera: clear the cache in Tools → Preferences;
  • Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.

//see examples at http://usability.wikimedia.org/wiki/Toolbar_customization
// Check that jQuery is available
if ( typeof $j != 'undefined' ) {
	$( function() {
		$( '#wpTextbox1' ).bind( 'wikiEditor-toolbar-buildSection-characters', function( event, section ) {
			//delete pages using
			//delete section.pages.ipa; 

			//insert chars into a page using
			// section.pages.latin.splice(<position>,0,'ǵ Ǽ ǽ Ơ ơ Ư ư');

			section.pages['african']={
					'layout': 'characters',
					'label': 'African',
					'characters': ['Ɑ', 'ɑ', 'Ɓ', 'ɓ', 'Ƈ', 'ƈ', 'Ɖ', 'ɖ', 'Ɗ', 'ɗ', 'Ǝ', 'ǝ', 'Ɛ', 'ɛ', 'Ƒ', 'ƒ', 'Ɠ', 'ɠ', 'Ɣ', 'ɣ', 'Ɩ', 'ɩ', 'Ɨ', 'ɨ', 'Ƙ', 'ƙ', 'Ŋ', 'ŋ', 'Ɲ', 'ɲ', 'Ɔ', 'ɔ', 'Ƥ', 'ƥ', 'Ʃ', 'ʃ', 'Ƭ', 'ƭ', 'Ʈ', 'ʈ', 'Ʊ', 'ʊ', 'Ʋ', 'ʋ', 'Ⱳ', 'ⱳ', 'Ƴ', 'ƴ', 'Ʒ', 'ʒ']
			};

			section.pages['armenian']={
					'layout': 'characters',
					'label': 'Armenian',
					'characters': ['Ա', 'ա', 'Բ', 'բ', 'Գ', 'գ', 'Դ', 'դ', 'Ե', 'ե', 'Զ', 'զ', 'Է', 'է', 'Ը', 'ը', 'Թ', 'թ', 'Ժ', 'ժ', 'Ի', 'ի', 'Լ', 'լ', 'Խ', 'խ', 'Ծ', 'ծ', 'Կ', 'կ', 'Հ', 'հ', 'Ձ', 'ձ', 'Ղ', 'ղ', 'Ճ', 'ճ', 'Մ', 'մ', 'Յ', 'յ', 'Ն', 'ն', 'Շ', 'շ', 'Ո', 'ո', 'Չ', 'չ', 'Պ', 'պ', 'Ջ', 'ջ', 'Ռ', 'ռ', 'Ս', 'ս', 'Վ', 'վ', 'Տ', 'տ', 'Ր', 'ր', 'Ց', 'ց', 'Ւ', 'ւ', 'Փ', 'փ', 'Ք', 'ք', 'Օ', 'օ', 'Ֆ', 'ֆ', 'և']
			};

			section.pages['cherokee']={
					'layout': 'characters',
					'label': 'Cherokee',
					'characters': ['Ꭰ', 'Ꭱ', 'Ꭲ', 'Ꭳ', 'Ꭴ', 'Ꭵ', 'Ꭶ', 'Ꭷ', 'Ꭸ', 'Ꭹ', 'Ꭺ', 'Ꭻ', 'Ꭼ', 'Ꭽ', 'Ꭾ', 'Ꭿ', 'Ꮀ', 'Ꮁ', 'Ꮂ', 'Ꮃ', 'Ꮄ', 'Ꮅ', 'Ꮆ', 'Ꮇ', 'Ꮈ', 'Ꮉ', 'Ꮊ', 'Ꮋ', 'Ꮌ', 'Ꮍ', 'Ꮎ', 'Ꮏ', 'Ꮐ', 'Ꮑ', 'Ꮒ', 'Ꮓ', 'Ꮔ', 'Ꮕ', 'Ꮖ', 'Ꮗ', 'Ꮘ', 'Ꮙ', 'Ꮚ', 'Ꮛ', 'Ꮜ', 'Ꮝ', 'Ꮞ', 'Ꮟ', 'Ꮠ', 'Ꮡ', 'Ꮢ', 'Ꮣ', 'Ꮤ', 'Ꮥ', 'Ꮦ', 'Ꮧ', 'Ꮨ', 'Ꮩ', 'Ꮪ', 'Ꮫ', 'Ꮬ', 'Ꮭ', 'Ꮮ', 'Ꮯ', 'Ꮰ', 'Ꮱ', 'Ꮲ', 'Ꮳ', 'Ꮴ', 'Ꮵ', 'Ꮶ', 'Ꮷ', 'Ꮸ', 'Ꮹ', 'Ꮺ', 'Ꮻ', 'Ꮼ', 'Ꮽ', 'Ꮾ', 'Ꮿ', 'Ᏸ', 'Ᏹ', 'Ᏺ', 'Ᏻ', 'Ᏼ']
			};

			
			section.pages['georgian']={
					'layout': 'characters',
					'label': 'Georgian',
					'characters': ['ა', 'ბ', 'გ', 'დ', 'ე', 'ვ', 'ზ', 'თ', 'ი', 'კ', 'ლ', 'მ', 'ნ', 'ო', 'პ', 'ჟ', 'რ', 'ს', 'ტ', 'უ', 'ფ', 'ქ', 'ღ', 'ყ', 'შ', 'ჩ', 'ც', 'ძ', 'წ', 'ჭ', 'ხ', 'ჯ', 'ჰ']
			};
			

			//add one of the missing sections to greek
			greekPlus = ['ἀ', 'ᾀ', 'ἐ', 'ἠ', 'ᾐ', 'ἰ', 'ὀ', 'ὐ', 'ὠ', 'ᾠ', 'ἄ', 'ᾄ', 'ἔ', 'ἤ', 'ᾔ', 'ἴ', 'ὄ', 'ὔ', 'ὤ', 'ᾤ', 'ἂ', 'ᾂ', 'ἒ', 'ἢ', 'ᾒ', 'ἲ', 'ὂ', 'ὒ', 'ὢ', 'ᾢ', 'ἆ', 'ᾆ', 'ἦ', 'ᾖ', 'ἶ', 'ὖ', 'ὦ', 'ᾦ']
			section.pages['greek'].characters = greekPlus.concat(section.pages['greek'].characters); 
			
			section.pages['gothic']={
					'layout': 'characters',
					'label': 'Gothic',
					'characters': ['𐌰', '𐌱', '𐌲', '𐌳', '𐌴', '𐌵', '𐌶', '𐌷', '𐌸', '𐌹', '𐌺', '𐌻', '𐌼', '𐌽', '𐌾', '𐌿', '𐍀', '𐍁', '𐍂', '𐍃', '𐍄', '𐍅', '𐍆', '𐍇', '𐍈', '𐍉', '𐍊']
			};
			section.pages['runes']={
					'layout': 'characters',
					'label': 'Runes',
					'characters': ['ᚠ', 'ᚢ', 'ᚦ', 'ᚨ', 'ᚱ', 'ᚲ', 'ᚷ', 'ᚹ', 'ᚺ', 'ᚻ', 'ᚾ', 'ᛁ', 'ᛃ', 'ᛇ', 'ᛈ', 'ᛉ', 'ᛊ', 'ᛏ', 'ᛒ', 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