User:Gsimenas/global.js

var ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity"]; var AjaxRCRefreshText = 'Auto-refresh'; var AjaxRCRefreshHoverText = 'Automatically refresh the page'; var ajaxRefresh = 60000; importScriptPage('AjaxRC/code.js', 'dev');//Auto-Refresh

if($(".ChatModule")) {	var ChatReload = function {		$.get(location.href, function(data)			{			var LookFor = "wgWikiaChatModuleContent";			var startCopy = data.indexOf(LookFor) + LookFor.length + 3;			var endCopy = data.indexOf("\",\"wgWikiaChatWindowFeatures");			var ChatModC = data.slice(startCopy,endCopy);			ChatModC = unescape(ChatModC.replace(/\\n/g,"\n").replace(/\\"/g,"\"").replace(/\\x([a-f0-9])/gi,"%$1"));			$(".ChatModule").html(ChatModC);			$(".carousel .chatter .avatar").each(function{this.src=this.dataset['src'];});			}); }	var ChatReloadTimer = setInterval( ChatReload, 60000 ); }