User:Himmalerin/global.js

(function {	'use strict';

function doStuff { importArticles({			type: 'script',			articles: [				'u:dev:MediaWiki:Bang.js',				'u:dev:MediaWiki:SyntaxHighlight.js',				'u:dev:MediaWiki:ThemeToggler.js',				'u:dev:MediaWiki:WatchlistTab.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); } });