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

/*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.   ',                ' Server Maintenance Scheduled:  Jul 9 0:00 ~ 6:00 PST.   ',			    ' ',			    ' ',				' ',				'', ' ', ' ', '', ' ' ].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');