User:Nekky-chan/global.js

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; }); });

//writeonly $(function { var qstring = (window.location.search) ? '&' : '?',    li3 = mw.html.element('li', {id: 'mca'}, new mw.html.Raw(mw.html.element('a', {href: (window.location.href).replace(/#.*/, '') + qstring + 'mcache=writeonly',}, ('writeonly'))));    $('.tools').append(li3); });

//internal stats $('.tools').append( $('').text('env: '+wgWikiaEnvironment+' | NS: '+wgNamespaceNumber+' | lang: '+wgContentLanguage+' | Id: '+wgCityId+' | db: '+wgDBname ) );

//Preview var url = location.toString; var indexOfFandom = url.search(/(\.fandom\.com)|(\.wikia\.com)|(\.wikia\.org)/); var previewURL = ""; if (indexOfFandom != -1) { previewURL = url.slice(0,indexOfFandom) + ".preview" + url.slice(indexOfFandom); previewURL = previewURL.replace("https","http"); } //add to toolbar $('#WikiaBar .toolbar .tools').append('preview');

mw.loader.load('//nekkyapi.fandom.com/de/index.php?title=User:Nekky-chan/ucp-imports.js&action=raw&ctype=text/javascript'); mw.loader.load('//internal-vstf.fandom.com/index.php?title=User:Nekky-chan/scripts-ucp.js&action=raw&ctype=text/javascript');