User:Coaster4321/Scripting/ars.js

/* */ function incspeed{ if (ajaxRefresh >= 10000){ ajaxRefresh -= 2000; // Increase speed by 2 seconds var seconds = ajaxRefresh / 1000 $('#aspeed').text(seconds + " Seconds"); }	else { $("#incbut").hide; } } function decspeed{ ajaxRefresh += 2000; // Increase speed by 2 seconds var seconds = ajaxRefresh / 1000 $('#aspeed').text(seconds + " Seconds"); if (ajaxRefresh >= 12000) then $("#incbut").show; } }

$(document).ready(function{	if (wgTitle=="RecentChanges") {		$("#ajaxToggle").after(' + - ');		$("#incbut").click(incspeed);		$("#decbut").click(decspeed);		$("#decbut").add("#decbut").hover(function{this.fadeTo('slow',85);},function{this.fadeTo('slow',100)});	} } /* */