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(/\\'/g,"'").replace(/\\x([a-f0-9])/gi,"%$1"));			mw.config.set("wgWikiaChatModuleContent",ChatModC)			$(".ChatModule").addClass("ChatModuleUninitialized");			ChatEntryPoint.initEntryPoint			}); }	var ChatReloadTimer = setInterval( ChatReload, 60000 ); }