glbscripts.myfreeforum.org Forum Index glbscripts.myfreeforum.org
Forum dedicated to Greasemonkey Scripts made for Goal Line Blitz online game.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Join! (free) Join! (free)
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[How to] Add delay after replay on tciss' script

 
Post new topic   Reply to topic    glbscripts.myfreeforum.org Forum Index -> Modified Scripts
View previous topic :: View next topic  
Author Message
mw54finest
Site Admin


Joined: 22 Jun 2008
Posts: 160

PostPosted: Sun Jun 22, 2008 4:27 pm    Post subject: [How to] Add delay after replay on tciss' script Reply with quote

by RandomBeast
Sure, find the line (kinda near the bottom of the script) that says

Code:
window.location.href = Buttons[i].firstChild.href;


and replace it with

Code:
setTimeout("window.location.href = '" + Buttons[i].firstChild.href + "';",3000);


the last number (3000 in this example) is the number of milliseconds to delay before loading the next play. 1000 would be 1 second. I set my delay to 3 seconds.



_________________
Eat, Sleep, Live GLB!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    glbscripts.myfreeforum.org Forum Index -> Modified Scripts All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum