User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
rlgillespie
offline
Link
 
Originally posted by tciss
Anyone want to watch the game without clicking the "Next Play" button? How about with a first down marker?

If so here you go: http://userscripts.org/users/56355/scripts


Truly Brilliant!
 
chuffmaster2k
offline
Link
 
Very nice tciss! You are da man!
 
Sir Galahad
offline
Link
 
tciss, can I marry you and have your babies? Great %^#$ing script.
 
Cedo
offline
Link
 
Originally posted by Cronus6
Originally posted by Sik Wit It

Originally posted by tciss


Originally posted by Cronus6



Cool script tciss. A lot of people have been asking for something like this.

What would need to be removed to only have the first down marker?


just remove this section



I did not test this so let me know if it works


That stops it from going on to the next play automatically, but it also makes the first down line disappear for some reason


You must have done something wrong because it worked great for me. Thanks tciss.

Should look like :

// ==UserScript==
// @name Replay
// @namespace http://userscripts.org/users/useridnumbe
// @include http://goallineblitz.com/game/replay.pl?pbp_id=*
// ==/UserScript==




window.scroll(0,100);
var play_container = document.getElementById("replay_area");
var dirt = getElementsByClassName("play",document);
var dir = dirt[0];
var dirText = dir.innerHTML;
var ytg = "";
if(dirText.indexOf(" inches ")!=-1)
{var ytg = '.3';}
else
{ if(dirText.indexOf(" G on ")!=-1)
{//later
}
else
{ var p2 = dirText.indexOf(" & ")+7;
var p1 = dirText.indexOf(" on ");
var ytg = dirText.substring(p2,p1);
}
}
var dy = parseFloat(ytg)*9;
if(parseFloat(unsafeWindow.play_data[unsafeWindow.currentFrame][1].y) > parseFloat(unsafeWindow.play_data[unsafeWindow.currentFrame][0].y))
{
var fp = parseFloat(unsafeWindow.play_data[unsafeWindow.currentFrame][0].y) * 3+12;
if(dirText.indexOf(" G on ")!=-1)
{//later
}
else
{
var ltg = (parseFloat(fp) + parseFloat(dy));
var div = unsafeWindow.document.createElement('div');
div.id = 'ds';
div.className = 'player_icon';
play_container.appendChild(div);
div.style.top = (ltg) + 'px';
div.style.width = '520px';
div.style.height = '2px';
div.style.backgroundColor = 'red';
}
}
else
{
var fp = parseFloat(unsafeWindow.play_data[unsafeWindow.currentFrame][0].y) * 3-18;
if(dirText.indexOf("G on ")!=-1)
{//later
}
else
{
var ltg = (parseFloat(fp) - parseFloat(dy));
var div = unsafeWindow.document.createElement('div');
div.id = 'ds';
div.className = 'player_icon';
play_container.appendChild(div);
div.style.top = (ltg) + 'px';
div.style.width = '520px';
div.style.height = '2px';
div.style.backgroundColor = 'red';
}
}


function getElementsByClassName(classname, par)
{
var a=[];
var re = new RegExp('\\b' + classname + '\\b');
var els = par.getElementsByTagName("*");
for(var i=0,j=els.length; i<j; i++)
{
if(re.test(els.className))
{a.push(els);}
}
return a;
};



The same! I have C/P your code and that doesn't work at all...

 
TuNice
offline
Link
 
It ends the plays to early for me. I dont get to see the entire thing before it goes to the next one.
 
DaRealest
offline
Link
 
Originally posted by tciss
Anyone want to watch the game without clicking the "Next Play" button? How about with a first down marker?

If so here you go: http://userscripts.org/users/56355/scripts


Very nice, bro!
 
RandomBeast
offline
Link
 
Originally posted by tciss

Anyone want to watch the game without clicking the "Next Play" button? How about with a first down marker?

If so here you go: http://userscripts.org/users/56355/scripts


Awesome! Nice job. This is exactly what I have asked for in the past in the suggestions forum.
 
uberbad
offline
Link
 
Originally posted by tciss


Anyone want to watch the game without clicking the "Next Play" button? How about with a first down marker?

If so here you go: http://userscripts.org/users/56355/scripts


Very nice. It doesn't go to the Next Replay after a field goal though, and it ends plays a fraction of a second too soon.
 
Cronus6
offline
Link
 
Originally posted by Cedo
Originally posted by Cronus6

Originally posted by Sik Wit It


Originally posted by tciss



Originally posted by Cronus6




Cool script tciss. A lot of people have been asking for something like this.

What would need to be removed to only have the first down marker?


just remove this section



I did not test this so let me know if it works


That stops it from going on to the next play automatically, but it also makes the first down line disappear for some reason


You must have done something wrong because it worked great for me. Thanks tciss.

Should look like :




The same! I have C/P your code and that doesn't work at all...



I don't know... maybe the c/p breaks the formating somehow (as it's no longer nested). It's working fine for me. PM me your email if you want and I'll send you the file that's working for me.

 
TuNice
offline
Link
 
Originally posted by uberbad
Originally posted by tciss



Anyone want to watch the game without clicking the "Next Play" button? How about with a first down marker?

If so here you go: http://userscripts.org/users/56355/scripts


Very nice. It doesn't go to the Next Replay after a field goal though, and it ends plays a fraction of a second too soon.


yea is there anyway to fix it from ending early
 
tciss
offline
Link
 
I can put a delay on it. I was also thinking of putting up a score board and hiding the outcome of the play but leave the play description. Then show the outcome (ie. 21 yd gain), delay a second then move on.
 
TuNice
offline
Link
 
Originally posted by tciss
I can put a delay on it. I was also thinking of putting up a score board and hiding the outcome of the play but leave the play description. Then show the outcome (ie. 21 yd gain), delay a second then move on.


ok. can you just PM me when you update it. I turned it off for now because I was never able to actually see the end of the play.
 
Cronus6
offline
Link
 
Originally posted by tciss
I can put a delay on it. I was also thinking of putting up a score board and hiding the outcome of the play but leave the play description. Then show the outcome (ie. 21 yd gain), delay a second then move on.


I like that idea.
 
Sir Galahad
offline
Link
 
Originally posted by tciss
I can put a delay on it. I was also thinking of putting up a score board and hiding the outcome of the play but leave the play description. Then show the outcome (ie. 21 yd gain), delay a second then move on.


Scoreboard would be great. Possibly along the lines of the one in the play-by-play script? Also, the inclusion of the quarter would be great, I keep on forgetting which one it is in
 
uberbad
offline
Link
 
Originally posted by Sir Galahad
Originally posted by tciss

I can put a delay on it. I was also thinking of putting up a score board and hiding the outcome of the play but leave the play description. Then show the outcome (ie. 21 yd gain), delay a second then move on.


Scoreboard would be great. Possibly along the lines of the one in the play-by-play script? Also, the inclusion of the quarter would be great, I keep on forgetting which one it is in


Ditto. Please make this tciss.
 
Page:
 


You are not logged in. Please log in if you want to post a reply.