User:Himmalerin/global.js

(function {	'use strict';

console.log(document.body.classList);

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: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/wiki/MediaWiki:ArticlesAsResources.js?action=raw&ctype=text/javascript').then(doStuff); } else { doStuff; }	}	if (document.readyState !== "loading") { checkSite; } else { document.addEventListener("DOMContentLoaded", checkSite); } });