User:TUSF/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 = 10000; importScriptPage('AjaxRC/code.js', 'dev');//Auto-Refresh

//Below is a script I came up with for refreshing the //display that shows the users that are on the wiki's chat. //I made it so that every 60 seconds (60000 miliseconds) //it calls the function. /* //Currently broken, due to the wikia update on how Chat Users are loaded... //I'll find a solution later. Do not use. if($(".ChatModule")) {	var ChatReload = function {		$.get(location.href, function(data)			{			var LookFor = "wgWikiaChatUsers";			var startCopy = data.indexOf(LookFor) + LookFor.length + 3;			var endCopy = data.indexOf("],")+1;			var ChatModC = data.slice(startCopy,endCopy);			mw.config.set("wgWikiaChatModuleContent",eval(ChatModC));			$(".ChatModule").addClass("ChatModuleUninitialized");			ChatEntryPoint.initEntryPoint			}); }	var ChatReloadTimer = setInterval( ChatReload, 60000 ); }