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 = [				' ',				'',				' ',				' ',				'',				'  '			].join('');			recent.parentNode.insertBefore(div, recent);		}                return !!(rail && recent);	};	obj.insert = function  {		if (!obj.clickThrough) {			setTimeout(function { obj['insert']; }, 250);		}	};	obj.insert; });

importArticles({   type: "script",    articles: [        'w:c:dev:UserTags/code.js',    ] }); $(document).ready( function {   if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;   $('span.insertusername').each(function { $(this).text(wgUserName); }); });

/* Username tags additions/filters*/ window.UserTagsJS = { modules: {}, tags: { chatmod: {u:'Lounge Management'}, admin: {u:'Wiki Administrator'}, bannedfromchat: {u:'Banned From Lounge'} } }; UserTagsJS.modules.custom = { 'Luxionmk2': ['chatmod', 'admin'], 'Yapboonyew': ['chatmod', 'admin'], };

UserTagsJS.modules.autoconfirmed = false; UserTagsJS.modules.userfilter = { 'Luxionmk2': ['admin'], 'Yapboonyew': ['admin'] };

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