User:Sophiedp/global.js

/* Disable 5 second edit save delay */ GlobalTriggers.bind('WikiaEditorReady', function (point) { if (point.controls) {   point.controls.editform.off('submit').on('submit', function  { point.setState(3); }); }});

/* Add the pagename to the prefixindex link in the toolbar */ document.querySelector('a[data-name="prefixindex"]').href += '/' + wgPageName;

/* Script configs */ window.qtEnableUserPageOverwrite = true; window.fdButtons = [{summary: 'Housekeeping', label: 'HK'}];

/* Imports */ importScriptPage('MediaWiki:RecentChangesMultiple/code.2.js', 'dev'); importScriptPage('User:KockaAdmiralac/UnhideUserMasthead.javascript', 'kocka'); mw.loader.load('https://orionhub.org/file/terracodes-OrionContent/test/html.js'); var ScriptArray = [ 'AjaxUndo', 'QuickDiff', 'FastDelete', 'CacheCheck', 'LastEdited', 'ViewRemoved', 'PurgeButton', 'OldFilePages', 'NullEditButton', 'CodeQuickLinks', 'HoverEditCount', 'UserAccountAge', 'AjaxThreadDelete', 'WallGreetingButton', 'QuickCreateUserPage', 'QuickCreateMessageWallGreeting' ]; for (var i = 0; i < ScriptArray.length; i++) { importScriptPage('MediaWiki:' + ScriptArray[i] + '/code.js', 'dev'); }