User:10SecondsToWaste/global.js

// From https://github.com/ajaxorg/ace/wiki/Configuring-Ace

window.aceCustomSettings = { // Editor selectionStyle: 'line', highlightActiveLine: true, highlightSelectedWord: true, readOnly: false, cursorStyle: 'smooth slim', mergeUndoDeltas: true, behavioursEnabled: true, wrapBehavioursEnabled: true, autoScrollEditorIntoView: true, copyWithEmptySelection: false, useSoftTabs: false, navigateWithinSoftTabs: false, enableMultiselect: true, enableAutoIndent: true, // Renderer hScrollBarAlwaysVisible: false, vScrollBarAlwaysVisible: false, highlightGutterLine: true, animatedScroll: true, showInvisibles: false, showPrintMargin: true, printMarginColumn: 80, fadeFoldWidgets: true, showFoldWidgets: true, showLineNumbers: true, showGutter: true, displayIndentGuides: true, // highlightIndentGuides: true, // fontSize: 14, // fontFamily: 'Consolas', // maxLines: 200, // minLines: 25, scrollPastEnd: 0, fixedWidthGutter: true, theme: 'dawn', // customScrollbar: true, hasCssTransforms: true, // maxPixelHeight: null, // useSvgGutterIcon: true, // Mouse handler scrollSpeed: 2, dragDelay: 0, dragEnabled: true, focusTimeout: 0, tooltipFollowsMouse: true, // Session firstLineNumber: 1, overwrite: false, newLineMode: 'auto', useWorker: true, indentedSoftWrap: true, tabSize: 4, wrap: true, // wrapMethod: 'code', foldStyle: 'markbeginend', // mode: null, // Extension enableBasicAutocompletion: true, enableLiveAutocompletion: true, enableSnippets: true, // enableEmmet: true, // useElasticTabstops: true, // Unknown keyboardHandler: 'ace/keyboard/vscode' };

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxRename/code.js',        'u:dev:MediaWiki:CustomizeAce.js',        'u:dev:MediaWiki:FileUsageAuto-update/code.js',        'u:dev:MediaWiki:ImportJSPage/code.js',        // 'u:dev:MediaWiki:JWB/load.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:MaximizeAce.js',        'u:dev:MediaWiki:PageRenameAuto-update/code.js'    ] });

const loader = function(host) { return function(page) { mw.loader.load('https://' + host + '/wiki/' + page + '.js?action=raw&ctype=text/javascript'); }; };

[	'User:10SecondsToWaste/EditSection0', 'User:10SecondsToWaste/QuickEdit' ].forEach(loader('dev.fandom.com'));

[	'User:Chlod/Scripts/GoToTitle' ].forEach(loader('en.wikipedia.org'));

mw.loader.load(['mediawiki.diff']);