User:Zsotroav/global.js

console.log('Loading global JavaScript for user zsotroav...');

window.AutoCreateUserPagesConfig = { content: { 2: '' }, summary: 'Auto creating user page with: ', };

window.UTCClockConfig = { format: '%2I:%2M:%2S %p %{Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday}w, %{January;Febuary;March;April;May;June;July;August;September;October;November;December}m %2d, %Y (UTC)', };

window.dev = window.dev || {}; window.dev.editSummaries = { select: [ 'General', [ 'Cleanup/Fixup', 'Corrected spelling/grammar', 'Fixed Formatting/Styling', 'Corrected template usage', ],   'Maintenance', [ 'Undo', 'Missing sources', 'Unconfirmed info', 'Unofficial content', ],   'Content', [ 'Updated with new information', 'Added sources', 'Added spoiler template(s)', 'Added/Updated sources', 'Added image(s)', 'Fixed broken link(s)/image(s)', ] ] };

window.pPreview = $.extend(true, window.pPreview, {RegExp: (window.pPreview || {}).RegExp || {} }); window.pPreview.defimage = 'https://static.wikia.nocookie.net/ucp-internal-test-starter-commons/images/0/05/Ajax.gif/revision/latest?cb=20200818143056'; window.pPreview.noimage = 'https://static.wikia.nocookie.net/lady-bug/images/6/67/No_Screenshot.png/revision/latest/scale-to-width-down/330?cb=20210524095709'; window.pPreview.RegExp.ipages = [new RegExp('Special:*')];

window.CustomTools = [ {		icon: 'info', link: mw.config.get('wgPageName') + '?action=info', placement: 'page-tools-left', position: -1, text: 'View page info' },	{		icon: 'link', link: 'Special:WhatLinksHere/' + mw.config.get('wgPageName'), placement: 'page-tools-left', position: -1, text: 'What links here' },	{		link: 'Special:Log?user=' + mw.config.get('profileUserName'), placement: 'user-links', position: 4, text: 'Log' } ];

importArticles({	type: 'script',	articles: [		// Main nav       'u:dev:MediaWiki:UCXSearchBar.js',        'u:dev:MediaWiki:UTCClock/code.js',        // Article        'u:dev:MediaWiki:ModernBackToTopButton/code.js',        'u:dev:MediaWiki:CopyTitle.js',        'u:dev:MediaWiki:LinkPreview/code.js',        'u:dev:MediaWiki:ProtectionIcons.js',        'u:dev:MediaWiki:ReferencePopups/code.js',        'u:dev:MediaWiki:View_Source/code.js',        // User pages        'u:dev:MediaWiki:AutoCreateUserPages.js',        'u:dev:MediaWiki:AvatarLink.js',        'u:dev:MediaWiki:MastheadRightsBadge.js',        'u:dev:MediaWiki:ShowUserGroups.js',        'u:dev:MediaWiki:User Admin Tools.js',        // Editing and maintenance        'u:dev:MediaWiki:FileLogs.js',        'u:dev:MediaWiki:OpenWithVSC.js',        'u:dev:MediaWiki:Standard Edit Summary/code.js',        // Custom tools        'u:dev:MediaWiki:ThemeToggler.js', // Needs to be first for button order 'u:dev:MediaWiki:CustomTools.js', ] });

/* Editor sizing buttons */ setTimeout(function {	if (document.getElementsByClassName('CodeMirror').length > 0) {		document.getElementsByClassName("wikiEditor-ui-toolbar")[0].getElementsByClassName("tabs")[0].outerHTML += '  S   M   L   XL  '; } }, 2000);

/* Resizable Code Mirror */ window.resize = function(size){ var s = "300px"; if (size == "M") { s = "525px"; } else if (size == "L") { s = "625px"; } else if (size == "XL") { s = "800px"; } document.getElementsByClassName('CodeMirror')[0].style.height = s;	window.location.hash = "#wikiEditor-ui-random-nonexistent-crap"; window.location.hash = "#wikiEditor-ui-toolbar"; };

console.log('Finished loading global JavaScript.');