User:Sophiedp/global.js

/* Remove "help" from account nav menu */ $('.wds-list > li:has(a[data-tracking-label="account.help"])').remove;

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

/* FastDelete config */ var fdButtons = []; window.fdButtons.push({summary: 'Housekeeping', label: 'HK' });

/* PageCreator config */ window.pageCreatorAvatar = true; window.pageCreatorTimestamp = true; window.pageCreatorNamespaces = Object.keys(mw.config.get("wgFormattedNamespaces")).map(Number);

/* Fix PageCreator showing giant image for IP avatar */ $(window).on('load', function {   if($("#pc-avatar").length) {        var pcimg = document.getElementById('pc-avatar');        if (pcimg.clientWidth == '300' && pcimg.clientHeight == '171') {            $('#pc-avatar').remove;            $('#page-creator').html(function(i,h){ return h.replace(/ /g,''); });       }        if (pcimg.clientWidth == '24' && pcimg.clientHeight == '24') {            $('#pc-avatar').remove;            $('#page-creator').html(function(i,h){ return h.replace(/ /g,''); });       }    } });

/* LastEdited config */ window.lastEdited = { namespaces: { include: Object.keys(mw.config.get("wgFormattedNamespaces")).map(Number) } };

/* ViewRemoved config */ window.ViewRemovedAlways = true;

/* QuickCreateUserPage config */ var qtEnableUserPageOverwrite = true;

/* Link to report page */ $('').html('Report').prependTo('.toolbar .tools');

/* Link to subpages */ $('').html('Subpages').prependTo('.toolbar .tools');

/* Imports */ importArticles({   type: "script",    articles: [        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:FastDelete/code.js',        'u:dev:MediaWiki:CacheCheck/code.js',        'u:dev:MediaWiki:MarkBlocked.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:PageCreator/code2.js',        'u:dev:MediaWiki:HoverEditCount/code.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js',        'u:dev:MediaWiki:UserAccountAge/code.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:DupImageList/code.js',        'u:dev:MediaWiki:DisplayTimer/code.js',        'u:dev:MediaWiki:CodeQuickLinks/code.js',        'u:dev:MediaWiki:WorkingMoreUsersCount.js',        'u:dev:MediaWiki:WallGreetingButton/code.js',        'u:dev:MediaWiki:OldFilePages/code.js',        'u:dev:MediaWiki:Rollback/code.2.js', 'u:dev:MediaWiki:Thread_Inspection/code.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:AjaxCommentDelete/code.js', 'u:kocka:User:KockaAdmiralac/UnhideUserMasthead.javascript', 'u:kocka:User:KockaAdmiralac/MastheadGender.javascript', 'u:kocka:MediaWiki:AjaxThreadDelete/code.js', 'u:noreply:MediaWiki:FileUsage.js' ] });