User:Sophiedp/global.js

/* Make the account nav menu not scrollable */ $('.wds-list > li:has(a[data-tracking-label="account.help"])').hide;

/* 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); });   } });

/* Subpages toolbar link */ var page = mw.config.get('wgPageName'); var inner = 'Subpages'; $('').html(inner).prependTo('.toolbar .tools');

/* Script configs */ //ViewRemoved window.ViewRemovedAlways = true; //QuickCreateUserPage window.qtEnableUserPageOverwrite = true; //FastDelete window.fdButtons = []; window.fdButtons.push({summary: 'Housekeeping', label: 'HK'}); //LastEdited window.lastEdited = { namespaces: { include: Object.keys(mw.config.get('wgFormattedNamespaces')).map(Number) },   size: false };

/* Imports */ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:FastDelete/code.js',        'u:dev:MediaWiki:CacheCheck/code.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js',        'u:dev:MediaWiki:PurgeButton/code.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:OldFilePages/code.js',        'u:dev:MediaWiki:NullEditButton/code.js',        'u:dev:MediaWiki:CodeQuickLinks/code.js',        'u:dev:MediaWiki:UserAccountAge/code.js',        'u:dev:MediaWiki:HoverEditCount/code.js',        'u:dev:MediaWiki:WallGreetingButton/code.js',        'u:kocka:MediaWiki:AjaxThreadDelete/code.js',        'u:dev:MediaWiki:QuickCreateUserPage/code.js',        'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',        'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:kocka:User:KockaAdmiralac/UnhideUserMasthead.javascript' ] });