User:Sophiedp/global.js

//PageCreator config window.pageCreatorConfig = { namespaces: Object.keys(mw.config.get('wgFormattedNamespaces')).map(Number), useAvatar: true, useTimestamp: true };

//Imports importArticles({   type: 'script',    articles: [        'u:dev:AbuseLogRC.js',        'u:dev:BlogLink/code.js',        'u:dev:ChatBanLogModal.js',        'u:dev:ConsistentModules/code.js',        'u:dev:FANSUN.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:LastEdited/code.js',        'u:dev:QuickAccessToCSSAndJS/code.js',        'u:dev:QuickDiff/code.js',        'u:dev:PageCreator/code2.js',        'u:dev:UnhideUserMasthead/code.js',        'u:dev:UnsafeScripts/code.js',        'u:dev:UserAccountAge/code.js',        'u:dev:VanguardTools.js',        'u:kocka:User:KockaAdmiralac/AutoWideCodeeditor.javascript'    ] });

//Chatconnect if (mw.config.get('wgCityId') === '177') { importScriptPage('MediaWiki:ChatConnect.3.js', 'internal-community'); }

//Fix VanguardTools menu overlap mw.hook('dev.van').add(function {    $('.van-tools-menu > ul > li:last > a').text('Dashboard'); });

//Extend ProtectionIcons to work in the MW namespace if (   mw.config.get('wgCityId') !== '7931' &&    mw.config.get('wgNamespaceNumber') === 8 &&    !/sysop/.test(mw.config.get('wgUserGroups')) ) { mw.hook('dev.wds').add(function (wds) {       $('#ca-edit svg').hide;        $('#ca-edit').prepend( wds.icon('alert-small') ).attr('title', 'You are editing this page without admin powers!');   }); importArticle({       type: 'script',        article: 'u:dev:WDSIcons/code.js'    }); } importArticle({   type: 'script',    article: 'u:dev:ProtectionIcons.js', });