User:Densake/global.js

window.CustomTools = [ {		link: 'https://community.fandom.com/wiki/User:Densake/global.css', placement: 'wiki-tools-dropdown', position: -1, text: 'Global CSS' },	{		link: 'https://community.fandom.com/wiki/User:Densake/global.js', placement: 'wiki-tools-dropdown', position: -1, text: 'Global JS' },	{		link: 'user:Densake/common.css', placement: 'explore', position: -1, text: 'Wiki CSS' },	{		link: 'user:Densake/common.js', placement: 'explore', position: -1, text: 'Wiki JS' } ];

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:NoGlobalNav.js',        /* Disables global nav on the left, also uses CSS code, big thing */        'u:dev:MediaWiki:LastEdited/code.js',        /* Displays last edited message at top of page */        'u:dev:MediaWiki:CustomTools.js',        /* Custom tools link: https://dev.fandom.com/wiki/CustomTools */        'u:dev:MediaWiki:WebArchive.js',        /* Adds Archive button */    ] }); /* Configuration for Last Edited Module */ window.lastEdited = { avatar: false, size: false, diff: false, comment: false, newpage: false, mainpage: false, time: 'timestamp', };

(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',            id: 'WebArchiveLink',            href: 'https://web.archive.org/save/' + window.location.href,            target: ( !window.WebArchiveNewTab ? '_blank' : null ),           text: i18n.msg( 'archive-text' ).plain,            title: i18n.msg( 'archive-title' ).plain        }).appendTo( '.page-header__contribution-buttons, .page-header__actions' ); }

mw.hook( 'dev.i18n' ).add(function(i18n) {       i18n.loadMessages( 'WebArchive' ).then(init);    }); importArticle({       type: 'script',        article: 'u:dev:MediaWiki:I18n-js/code.js'    }); });