User:Mr Pie 5/global.js

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

mw.loader.using('mediawiki.api').then(function{	if (mw.config.get('wgWikiaEnvironment') !== "sandbox") return;	if (mw.config.get('skin') === "fandomdesktop") return;	if (mw.config.get('wgCanonicalSpecialPageName') === "ThemeDesigner") return;	new mw.Api.saveOption('skin','fandomdesktop').then(function { location.reload; }); });

// Turn the page title into a link to the page { const title = document.getElementById("firstHeading"); // MediaWiki doesn't support backticks so piecemeal this :/ link = document.createElement('a'); link.href = window.location.pathname; link.style.color = "inherit"; link.textContent = title.textContent; title.textContent = ""; title.append(link); }