User:DecabristM/global.js

/* WebArchive на Zone Chronicles */ switch(mw.config.values.wgDBname) { case 'site-stalker-game-fandom, site-minecraft-fandom': (function {		   var config = mw.config.get([ 'wgArticleId', 'wgUserGroups' ]);		   if ( config.wgArticleId === 0 || config.wgUserGroups.indexOf( 'autoconfirmed' ) === -1 || window.WebArchiveLoaded ) return;		   window.WebArchiveLoaded = true;		    function init(i18n) {		        $('', { class: 'wds-button wds-is-secondary', id: 'WebArchiveLink', href: 'https://web.archive.org/save/' + window.location.href, target: ( !window.WebArchiveNewTab ? '_blank' : null ), text: 'Архив', title: 'Сохраните снимок этой страницы, используя WaybackMachine' }).appendTo( '.page-header__contribution-buttons, .page-header__actions' );		   }		}); break; }

/* Import JS */ importArticles({       type: 'script',        articles: [         	'u:dev:MediaWiki:Bang.js',        'u:dev:MediaWiki:DisableCode/code.js',        'u:dev:MediaWiki:WhatLinksHere/code.js',        'u:dev:MediaWiki:UserBadge/code.js',        'u:dev:MediaWiki:BackToTopButton/code.js',    ] });