User:Himmalerin/global.js

(function {	'use strict';

function doStuff { window.AutoCreateUserPagesConfig = { content: { 2: '',				3: false, },			summary: 'Script: Autocreate user page', };		importArticles({			type: 'script',			articles: [				'u:dev:MediaWiki:Bang.js',				'u:dev:MediaWiki:SyntaxHighlight.js',				'u:dev:MediaWiki:ThemeToggler.js',				'u:dev:MediaWiki:WatchlistTab.js',				// Vanguard stuff				'u:dev:MediaWiki:AutoCreateUserPages.js',				'u:dev:MediaWiki:DupeArgs.js',				'u:dev:MediaWiki:PortableListUsers.js',				'u:dev:MediaWiki:VanguardTools.js',			],		}); }	function checkSite { if (document.body.className.match('is-gamepedia')) { mw.loader.getScript('https://dev.fandom.com/load.php?mode=articles&articles=MediaWiki:ArticlesAsResources.js&only=scripts').then(doStuff); } else { doStuff; }	}	if (document.readyState !== "loading") { checkSite; } else { document.addEventListener("DOMContentLoaded", checkSite); } });