mw54finest Site Admin

Joined: 22 Jun 2008 Posts: 160
|
Posted: Sun Jun 22, 2008 4:30 pm Post subject: [How to] Make the replay step after a field goal attempt |
|
|
by RandomBeast
find the line right near the top that says
| Code: | | var dirText = dir.innerHTML; |
and add the following right under it
| Code: | if(dirText.indexOf(" field goal ")!=-1)
{
var Buttons = getElementsByClassName("tab",document);
var ButtonsCount = Buttons.length;
for(var i=0; i<ButtonsCount; i++)
{
var Button = Buttons[i];
var ButtonText = Button.innerHTML;
if(ButtonText.indexOf("Next Play")!=-1)
{
setTimeout("window.location.href = '" + Buttons[i].firstChild.href + "';",4000);
}
}
} |
_________________ Eat, Sleep, Live GLB! |
|