User:Shosoul/global.js

mw.loader.using('mediawiki.util').then(function {   window.globalNavButtons = [{            text: "Wikis",            url: "",            isMain: true,            whoIsMain: false,            shortName: "w"        },        {            text: "Among Us Wiki",            url: "https://among-us.fandom.com/wiki/Special:RecentChanges",            isMain: false,            whoIsMain: "w",            shortName: "auw"        },        {            text: "Personalization",            url: "",            isMain: true,            whoIsMain: false,            shortName: "p"        },        {            text: "Personal CSS",            url: "/wiki/User:Shosoul/common.css",            isMain: false,            whoIsMain: "p",            shortName: "css"        },        {            text: "Personal JS",            url: "/wiki/User:Shosoul/common.js",            isMain: false,            whoIsMain: "p", shortName: "js" },       {            text: "Global CSS", url: "https://ucp.fandom.com/wiki/User:Shosoul/global.css", isMain: false, whoIsMain: "p", shortName: "gcss" },       {            text: "Global JS", url: "https://ucp.fandom.com/wiki/User:Shosoul/global.js", isMain: false, whoIsMain: "p", shortName: "gjs" },       {            text: "Wiki CSS", url: "/MediaWiki:Wikia.css", isMain: false, whoIsMain: "p", shortName: "wcss" },       {            text: "Wiki JS", url: "/MediaWiki:Common.js", isMain: false, whoIsMain: "p", shortName: "wjs" },       {            text: "RC", url: "/wiki/Special:RecentChanges", isMain: true, whoIsMain: false, shortName: "RC" },       {            text: "New Files", url: "/wiki/Special:NewFiles", isMain: false, whoIsMain: "RC", shortName: "NF" },       {            text: "New Pages", url: "/wiki/Special:NewPages", isMain: false, whoIsMain: "RC", shortName: "NP" },       {            text: "New Messages", url: "/wiki/Special:SocialActivity?containerTypes=WALL", isMain: false, whoIsMain: "RC", shortName: "NM" },       {            text: "F", url: "/f", isMain: false, whoIsMain: false, shortName: "F" },

];   if (mw.config.get('wgNamespaceIds').gadget) { window.globalNavButtons.push({           text: "Gadgets",            url: "/wiki/Special:Gadgets",            isMain: false,            whoIsMain: "p",            shortName: "g"        }) }   if (/sysop|threadmoderator/.test(mw.config.get('wgUserGroups').join)) { window.globalNavButtons.push({           text: "Message deletion",            url: "/wiki/Special:SocialActivity?deleted=true&containerTypes=WALL",            isMain: false,            whoIsMain: "RC",            shortName: "MD"        }, {            text: "Reported posts",            url: "/f/reported",            isMain: false,            whoIsMain: "RC",            shortName: "RP"        }) }

window.AjaxBlock = { renameReasons: { 'Normal': { 'Error': 'Error', 'Misnamed Page': 'Misnamed Page', 'Better Name': 'Better Name', },           'Other': { 'Page does not belong in mainspace': 'Page does not belong in mainspace', }       },        check: { leaveredirect: false, watch: false, movetalk: true, movesubpages: true, deletetargets: false, ignorewarnings: false, },       unblockReasons: { 'Error': 'Error', 'Appealed': 'Appealed' }   };

importArticles({       type: 'script',        articles: [            'u:dev:MediaWiki:Status/code.js',            'u:dev:MediaWiki:AjaxBatchDelete.js',            'u:dev:MediaWiki:BulkVideoUpload.js',            'u:dev:MediaWiki:RedirectManagement/code.js',            'u:dev:MediaWiki:MultipleFileDelete/code.js',            'u:dev:MediaWiki:FindAndReplace/code.js',            //'u:dev:MediaWiki:AjaxBlock/code.js', // Conflicts with MessageBlock            'u:dev:MediaWiki:AjaxRename/code.js',            'u:dev:MediaWiki:WHAM/code.2.js',            'u:dev:MediaWiki:GlobalNavButtons.js',            'u:dev:MediaWiki:ViewNotificationsUsers.js',            'u:dev:MediaWiki:IgnoreNotifications.js',            'u:dev:MediaWiki:UserAndIPTools.js',            'u:dev:MediaWiki:UserAccountAge/code2.js',        ]    }); });