User:AblazeVase69188/global.js

// InPageEdit Preferences "doNotCollectMyInfo": false, "editMinor": true, "editSummary": "[InPageEdit] $section ", "lockToolBox": true, "redLinkQuickEdit": false, "outSideClose": false, "watchList": "preferences", "noConfirmEdit": false, "plugins": [ "toolbox.js", "wiki-editor.js", "fix-double-entrance.js" ] } //InPageEdit mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit'); //mw.loader.load('https://unpkg.com/mediawiki-inpageedit')
 * (window.InPageEdit = window.InPageEdit || {}).myPreference = {

//Wikiplus //mw.loader.load('https://wikiplus-app.com/Main.js');

//mw.loader.getScript('https://wikiplus-app.com/Main.min.js').then( function {

// RevisionPatrol // CSS $("head").first.append(''); // JS mw.loader.load("https://minecraft.fandom.com/zh/index.php?title=MediaWiki:Gadget-revisionPatrol.js&action=raw&ctype=text/javascript");

// 	'use strict';
 * (function(mw) {

if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) === -1 ) return;

const buttons = [ // ooui icon, label, pre, post, peri, group, section [			'strikethrough', 'Strike', ' ',			' ',			'Strike-through text', 'format', 'main' ],		[			'underline', 'Underline', ' ',			' ',			'Underlined text', 'format', 'main' ],		[			'code', 'Insert code', ' ',			'Code', 'insert', 'advanced' ],		[			'ongoingConversation', 'Insert hidden Comment', '',			'Comment', 'insert', 'advanced' ],		[			'ocr', 'Insert block of quoted text', ' \n', '\n ', 'Block quote', 'insert', 'advanced' ]	];

mw.loader.using([		'oojs-ui.styles.icons-editing-styling', // strikethrough, underline		'oojs-ui.styles.icons-editing-advanced', // code, ocr		'oojs-ui.styles.icons-moderation' // ongoingConversation	]).then(function {		mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { buttons.forEach(function(button) {				$textarea.wikiEditor( 'addToToolbar', { section: button[6], group: button[5], tools: { mcwCustomButton: { label: button[1], type: 'button', oouiIcon: button[0], action: { type: 'encapsulate', options: { pre: button[2], post: button[3], peri: button[4] }							}						}					}				} );			});		} );	}); })(window.mediaWiki); //