User:Magiczocker/global.js

mw.loader.load('https://internal-soap.fandom.com/index.php?title=User:Magiczocker/scripts.js&action=raw&ctype=text/javascript');

importArticles({	type: 'script',	articles: [		'u:dev:MediaWiki:WHAM/code.2.js',		'u:dev:MediaWiki:ThemeToggler.js',		//'u:dev:MediaWiki:RevisionDelete.js',		//'u:dev:MediaWiki:HighlightDeprecatedElements.js',		'u:dev:MediaWiki:FileTools.js',		//'u:dev:MediaWiki:HighlightCode.js',	] });

// Add missing move button to user pages if (mw.config.get('wgNamespaceNumber') === 2) { mw.loader.using('mediawiki.api').then(function {		return new mw.Api.loadMessagesIfMissing([ 'move' ]);	}).then(function {		const history = document.getElementById('ca-history').parentElement;		const moveParent = document.createElement('li');		const move = document.createElement('a');		move.id = 'ca-move';		move.href = mw.config.get('wgArticlePath').replace('$1', 'Spezial:Verschieben/' + mw.config.values.wgPageName);		move.textContent = mw.msg('move');		moveParent.append(move);		history.after(moveParent);	}); }

mw.loader.using('mediawiki.util').then(function {	if (mw.util.getParamValue('so')) {		window.history.replaceState({}, , window.location.href.replace('?so=search', ));	} });