User:SuperDragonXD1/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:CustomizeAce.js',        'u:dev:MediaWiki:PurgeButton/code.js',        //'u:dev:MediaWiki:ThemeSelector.js',        'u:dev:MediaWiki:SandboxTab/code.js',        'u:dev:MediaWiki:PageCreator/code2.js',        'u:dev:MediaWiki:MisspelledPage/code.js',        // General        'u:dev:MediaWiki:View_Raw/code.js',        'u:dev:MediaWiki:QuickAccessToCSSAndJS/code.js',        'u:dev:MediaWiki:ChromeToolbarColor.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:DedicatedTalkButton.js',        //'u:dev:MediaWiki:JSONViewer.js',        //'u:dev:MediaWiki:UsefulDropdown/code.js',        //'u:dev:MediaWiki:ArticlePreview/code.js',        'u:dev:MediaWiki:View_Source/code.js',        'u:dev:MediaWiki:ThemeToggler.js',        'u:dev:MediaWiki:AjaxBatchDelete.js', //'u:dev:MediaWiki:MobilePreview.js', // Editing 'u:dev:MediaWiki:EditIntroButton/code.js', 'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:VanguardTools.js', 'u:dev:MediaWiki:GamepediaNav.js', // For staff 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:VEButton.js', //'u:dev:MediaWiki:Standard Edit Summary/code.js' 'u:dev:MediaWiki:QuickTitle/code.js' ] }); window.ChromeToolbarColor = getComputedStyle( document.documentElement ).getPropertyValue( '--theme-accent-color' );

// Ace window.aceCustomSettings = { showInvisibles: 'true', enableBasicAutocompletion: true, highlightActiveLine: true };

var customizeToolbar = function{ $('#wpTextbox1').wikiEditor('addToToolbar', {	section: 'main',	group: 'format',	tools: {		"strikethrough": {			label: 'Strike',			type: 'button',			icon: '//upload.wikimedia.org/wikipedia/commons/9/93/Strikethrough-solid.svg',			action: {				type: 'encapsulate',				options: {					pre: " ",					post: " "				}			}		}	} }); $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {	section: 'advanced',	groups: {		list: {			tools: {				parserfunctions: {					label: 'HTML elements',					type: 'select',					list: {						'Nowiki-button': {							label: ' ',							action: {								type: 'encapsulate',								options: {									pre: ' ',									post: ' '								}							}						},						'Code-button': {							label: ' '								}							}						},						'Code-styled-button': {							label: ' '								}							}						},						'Div-button': {							label: ' ',							action: {								type: 'encapsulate',								options: {									pre: ' \n',									post: '\n '								}							}						},						'Styledbox-button': {							label: 'Styled ',							action: {								type: 'encapsulate',								options: {									pre: ' ',									post: ' '								}							}						},						'Pre-button': {							label: ' ',							action: {								type: 'encapsulate', options: { pre: ' \n', post: '\n ' }							}						},						'Pre-noescape-button': { label: ' (HTML)', action: { type: 'encapsulate', options: { pre: '\n\n', post: '\n ' }							}						},						'Pre-simulated-button': { label: ' (simulated)', action: { type: 'encapsulate', options: { pre: '\n\n', post: '\n ' }							}						},						'Span-button': { label: ' ', action: { type: 'encapsulate', options: { pre: ' ', post: ' ' }							}						},					}				}			}		}	} } ); $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { parserfunctions: { label: 'Collaspible elements', type: 'select', list: { 'Basic-collapsed-collapse-button': { label: 'Basic', action: { type: 'encapsulate', options: { pre: ' \n', post: '\n ' }							}						},						'Basic-precollapsed-collapse-button': { label: 'Basic (collasped)', action: { type: 'encapsulate', options: { pre: ' \n', post: '\n ' }							}						},						'Basic-withcontent-collapse-button': { label: 'Collapse specific area', action: { type: 'encapsulate', options: { pre: ' \n\n \n', post: '\n \n ' }							}						},						'Full-collapse-button': { label: 'Full features', action: { type: 'encapsulate', options: { pre: '\n\n \n', post: '\n \n ' }							}						},						'Customcollapsible-collapse-button': { label: 'Custom collapsible', action: { type: 'encapsulate', options: { pre: '\n \n', post: '\n \n\n Show/Hide text ' }							}						},					}				}			}		}	} } );

$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {	section: 'advanced',	groups: {		list: {			tools: {				parserfunctions: {					label: 'Parser functions',					type: 'select',					list: {						'Expr-button': {							label: '#expr:',							action: {								type: 'encapsulate',								options: {									pre: 								}							}						},						'Ifexpr-button': {							label: '#ifexpr:',							action: {								type: 'encapsulate',								options: {									pre: 								}							}						},						'If-button': {							label: '#if:',							action: {								type: 'encapsulate',								options: {									pre: 								}							}						},						'Ifeq-button': {							label: '#ifeq:',							action: {								type: 'encapsulate',								options: {									pre: 								}							}						},						'Iferror-button': {							label: '#iferror:',							action: {								type: 'encapsulate',								options: {									pre: '\n' }							}						},						'Ifexist-button': { label: '#ifexist:', action: { type: 'encapsulate', options: { pre: '' }							}						},						'Ifexist-noredlink-button': { label: '#ifexist: (no redlinks)', action: { type: 'encapsulate', options: { pre: '' }							}						},						'Switch-button': { label: '#switch:', action: { type: 'encapsulate', options: { pre: '' }							}						},					}				}			}		}	} } ); $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'advanced', 'group': 'size', 'tool': 'big' }); }; if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {		$.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar ); }