User:Surafbrov/global.js

mw.loader.getScript('https://dev.fandom.com/wiki/MediaWiki:ArticlesAsResources.js?action=raw&ctype=text/javascript').then(function {	importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:UCXSearchBar.js', 'u:dev:MediaWiki:UploadMultipleFiles.js' ]	}); });

$(function {   if (mw.config.get('skin') !== 'fandomdesktop') return;    var theme = mw.util.getParamValue('usetheme');    if (['light','dark'].indexOf(theme) === -1) return;    $.get(mw.util.wikiScript('wikia')+'?controller=ThemeApi&method=themeVariables&variant='+theme+'&cb='+(new Date.getTime)).done(function(data){ var $s = $('#pcjThemeSwitch')[0] || $(' ').attr('id','pcjThemeSwitch').appendTo('body'); $($s).text(data); $('body').removeClass('theme-fandomdesktop-light theme-fandomdesktop-dark').addClass('theme-fandomdesktop-'+theme); }); });

jQuery(document).ready(function {	$('.page-footer div.page-footer__categories').removeClass('wds-is-collapsed'); /* Uncollapse bottom categories as it is useful for editors */ });