User:TheDivineHost/global.js

/* Scripts importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:View_Source/code.js',        'u:dev:MediaWiki:MastheadGender/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MediaWiki:UserAccountAge/code2.js',        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:WikiActivity.js',    ] });

//Rollback if (wgSiteName === 'Fandom Developers Wiki') window.RollbackWikiDisable = true;

/* MultiUpload */ var MultiUploadoption = { max: 100 };

/* Made by Sophiedp */ mw.loader.using('mediawiki.util').then(function {	if (!$('.activity-tabs').length) {	    return;	}

function buildTab (text, page) { return $('', {			class: 'wds-tabs__tab',			append: $(' ', { class: 'wds-tabs__tab-label', append: $('', {					text: text,					href: mw.util.getUrl(page),				}) })		});	}	$('.activity-tabs').append([		buildTab('AbuseLog', 'Special:AbuseLog'),	]); });

/* mpofxd */ $(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); }); });

/* Noo bebe */ $('[data-tracking-label]').removeAttr('data-tracking-label data-tracking');