MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

var SocialMediaButtons = { position: 'top', colorScheme: 'color', buttonSize: '35px' }; importScriptPage('SocialIcons/code.js','dev');

importArticles({   type: 'script',    articles: [        "u:dev:RevealAnonIP/code.js",    ] });

/*Add click-through banners to right column*/ (function {	var obj = {};	obj.clickThrough = function  {		var rail = document.getElementById('WikiaRail'),			recent = document.getElementById('WikiaRecentActivity'),			div;		if (rail && recent && recent.parentNode === rail) {			div = document.createElement('DIV');			div.innerHTML = [ ' Server is currently ONLINE.  ', , , '', ' ', ' ', ' ', '', ' ', ' ', '', ' ' ].join(''); recent.parentNode.insertBefore(div, recent); }               return !!(rail && recent); };	obj.insert = function { if (!obj.clickThrough) { setTimeout(function {				obj['insert'];			}, 250); }	};	obj.insert; });

/* Auto updating recent changes opt-in * See w:c:dev:AjaxRC for info & attribution */ AjaxRCRefreshText = 'Auto-Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev');