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 */ //QuickCreateUserPage window.qtEnableUserPageOverwrite = true; //FastDelete window.fdButtons = []; window.fdButtons.push({summary: 'Housekeeping', label: 'HK'}); //LastEdited window.lastEdited = { namespaces: { include: Object.keys(wgFormattedNamespaces).map(Number) } };

/* Imports */ mw.loader.load('https://orionhub.org/file/terracodes-OrionContent/test/html.js'); importArticles({   type: 'script',    articles: [        'u:dev:AjaxUndo/code.js',        'u:dev:QuickDiff/code.js',        'u:dev:FastDelete/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:LastEdited/code.js',        'u:dev:ViewRemoved/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:OldFilePages/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:HoverEditCount/code.js',        'u:dev:UserAccountAge/code2.js',        'u:dev:WallGreetingButton/code.js',        'u:dev:QuickCreateUserPage/code.js',        'u:dev:RecentChangesMultiple/code.2.js',        'u:kocka:MediaWiki:AjaxThreadDelete/code.js',        'u:dev:QuickCreateMessageWallGreeting/code.js',        'u:kocka:User:KockaAdmiralac/UnhideUserMasthead.javascript'    ] });