User:Lunarity/global.js

/*jshint smarttabs:true laxbreak:true bitwise:false browser:true devel:true jquery:true es5:true */ /*global importScriptPage importArticles mediaWiki */

// Bleeding edge HideRail2 // FIXME: Fix this mediaWiki.user.options.set({	HideRailDebug: true,	HideRailSyncAcrossTabs: false }); importScriptPage('User:Lunarity/test.js', 'community');

// Bulk import scripts that don't need to be debugged importArticles({	type: 'script',	articles: [		'w:dev:RevealAnonIP/usercode.js',		'w:dev:AntiUnicruft/code.js',		'w:dev:DisplayClock/code.js',		'w:dev:VisualSpellCheck/code.js',		'w:dev:UnsafeScripts/code.js'	] });

if (mediaWiki.config.get('skin') === 'oasis') { jQuery(function($) {	'use strict';	$('#AccountNavigation > li > .subnav').append('global.jsglobal.csswikia.jswikia.css'); }); }

switch(mediaWiki.config.get('wgPageName')) { case 'LangScanLanding': case 'Community_Central:Not_a_valid_Wikia': jQuery(window).on('message.langscan', function(ev) {		'use strict';		var e = ev.originalEvent;		if (typeof(e.data) === 'string' && e.data.substr(0, 8) === 'langscan') {			e.source.postMessage(e.data.substr(9) + '#' + (mediaWiki.config.get('wgDBname') !== 'wikia' ? 1 : 0), e.origin);			ev.stopImmediatePropagation;		}	}); }