User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
Dannyg28
offline
Link
 
Originally posted by cooljesture20
Originally posted by Dannyg28

Originally posted by cooljesture20


I've been using FF all day today, and really I don't see a difference. Everything loads as fast and looks the same as far as I can tell.

Having the extra scripts is cool though, that makes FF worth it IMO.


something like 70% of viruses need you to be on internet explorer for them to get on your computer.


True, but I never got a virus using IE and I don't have any software to prevent, I just never did anything stupid on the computer. My point is I don't see or feel a real difference. For all the hype FF gets (and not just on GLB, but everywhere) you'd think it would have some very substantial and noticeable upgrades about it over IE.

I'm not complaining though, nor am I really sure what I expected, I guess I just expected to be blown away by it and I wasn't.


its the customization. you can download so many different add-ons that do so many things(block adds,improve searches,etc.). its not like its gonna take you to a different internet.
 
erik_m_vos
offline
Link
 
Isn't there a script to change the scouting report bars to numbers instead of, well, bars? lol
 
Dannyg28
offline
Link
 
Originally posted by erik_m_vos
Isn't there a script to change the scouting report bars to numbers instead of, well, bars? lol


it puts the numbers on the bars.
 
erik_m_vos
offline
Link
 
yeah, where is that script.... i'd love to have that one
 
Dannyg28
offline
Link
 
Originally posted by erik_m_vos
yeah, where is that script.... i'd love to have that one


http://userscripts.org/scripts/show/27696
 
Barry20
offline
Link
 
Originally posted by Jed

Originally posted by RandomBeast

You should be somewhat familiar with Greasemonkey to do this, as you will in essence be creating your own script for your player.

Now before we get started, you'll need to find the player ID of who you want to track on the replay. You can do that by clicking on any of your players on your home page. You'll see their ID at the end of the URL: "player_id=######"

###### = your player ID number. Save that number.

You'll also need a 16x16 image you want to show up for your player.

I'm using just a colored red circle with my player's initial on it, but you can put anything really. Just make sure it is 16x16 so it fits with the others in the replay. It should have some transparency if you want to make it a circle. Upload it to a server somewhere and save that URL.

Now, in Firefox go to Tools>Greasemonkey>New User Script...

For name, enter the name of your player
Put anything for Namespace (I put GLB for GoalLineBlitz)
You can put any description. Something like "Custom icon on replay for player XYZ"
For the includes, remove anything currently there, and add "http://goallineblitz.com/game/replay.pl?pbp_id=* " (no quotes)

It may ask you to browse for a text editor if you don't have one associated - browse to notepad or something similar.

It will open up a text file with a few lines at the top. Underneath those, put the following code:

window.setTimeout( function()
{
if(document.getElementById('#######')){
document.getElementById('#######').innerHTML = '<img src="http://www.maploco.com/maps/dots/red-circle.png">';
}
}
)

Replace the ###### in the two places with your player user ID you saved earlier. Replace the URL with the path to your image. Save that file. Next time you watch a replay, your player will have a custom icon.


Addendum to the highlighting (if you don't want to replace the image and just want to write one script for all your players):

Originally posted by RandomBeast


Can't do red dots, because that would still require a bunch of new images. But you can get close. Use the same code, but replace the line that switches the image with this:

document.getElementById('#######').style.backgroundColor = 'red';

You still need to plug in your player ID.

You can also include all your players in one script back to back:

if(document.getElementById('000001')){
document.getElementById('000001').style.backgroundColor = 'red';
}

if(document.getElementById('000002')){
document.getElementById('000002').style.backgroundColor = 'red';
}

etc.


Originally posted by

You can use any color you want. You can use named values or hex codes.

Here is a good list from RandomBeast: http://www.w3schools.com/html/html_colornames.asp

Another list that's sorted differently from Drav: http://www.cryer.co.uk/resources/javascript/html2.htm




I'd just like to recommend an update to this, sorry if it's been done, I'm just dumping this for anyone who might find it helpful.

Originally posted by

var Player = [154407, 154497, 317095, 376935, 413013, 565887, 355118, 317815, 408599, 565820]
window.setTimeout( function() {
for(x in Player) {
if(document.getElementById(Player[x])){
document.getElementById(Player[x]).style.backgroundColor = 'red';
}
}
});


Instead of adding a new code block for each player, I've encapsulate the code in a loop, so you can use this snippet in full and just change the list of player ID's at the start. This is much easier to maintain.
 
erik_m_vos
offline
Link
 
THANKS!!
 
Omle
offline
Link
 
Originally posted by cooljesture20
Originally posted by Dannyg28

Originally posted by cooljesture20


I've been using FF all day today, and really I don't see a difference. Everything loads as fast and looks the same as far as I can tell.

Having the extra scripts is cool though, that makes FF worth it IMO.


something like 70% of viruses need you to be on internet explorer for them to get on your computer.


True, but I never got a virus using IE and I don't have any software to prevent, I just never did anything stupid on the computer. My point is I don't see or feel a real difference. For all the hype FF gets (and not just on GLB, but everywhere) you'd think it would have some very substantial and noticeable upgrades about it over IE.

I'm not complaining though, nor am I really sure what I expected, I guess I just expected to be blown away by it and I wasn't.


have you seen the security Holes in IE?

According to my sources...

IE has 10 Security Holes
FF Has 1 Secuirty Hole
Opera Has 0 Security Holes
Safari has 1 Security Hole

so yeah IE is bt far the worst.
My browser of choice is either Firefox of Opera. Using Opera ATM.
 
jnwillis
offline
Link
 
Was wondering if someone could write up a script that outputs an opposing teams tendencies? I manually write out my teams defensive gameplan and was looking for a bit quicker way to get this done. Maybe something that would look like this:

Offensive Breakdown; PIRATES

RUSH/PASS ratio Per GAME;
34%/66%

PASSING:
Passing Stats/Distance/Ball RATIO spread per Game;
COMP/ATT/YDS: 19.5/37.5- 137.9yds 3.6 per comp
COMP%: 52%
Dist%: S-25% Med-60% Long-15%
WR-75% TE-25% HB-0%

Leading Passer:
http://goallineblitz.com/game/player.pl?player_id=334773
14QB

Leading receiver:
http://goallineblitz.com/game/player.pl?player_id=310762
16WR

http://goallineblitz.com/game/player.pl?player_id=562746
10WR

http://goallineblitz.com/game/player.pl?player_id=110894
16TE





RUSHING:
Rushing stats/ Running/Ball RATIO spread Per Game;
ATT/YDS: 18.8- 41.5yds 2.2p/c
HB-100% FB-0% QB-0%
INSIDE/OUTSIDE: 40%/60%

Leading Rusher HB lvl15
http://goallineblitz.com/game/player.pl?player_id=179710


Elusive HB lvl13
http://goallineblitz.com/game/player.pl?player_id=96483


Leading O-Linemen: lvl17 ROT
http://goallineblitz.com/game/player.pl?player_id=290924


lvl16 LOT
http://goallineblitz.com/game/player.pl?player_id=105215



I've seen one that was similar but you had to download a php server and a bunch of junk and figured someone would know how to make that easier. Thanks!
 
DaRealest
offline
Link
 
Originally posted by jtwillis
Was wondering if someone could write up a script that outputs an opposing teams tendencies? I manually write out my teams defensive gameplan and was looking for a bit quicker way to get this done. Maybe something that would look like this:

Offensive Breakdown; PIRATES

RUSH/PASS ratio Per GAME;
34%/66%

PASSING:
Passing Stats/Distance/Ball RATIO spread per Game;
COMP/ATT/YDS: 19.5/37.5- 137.9yds 3.6 per comp
COMP%: 52%
Dist%: S-25% Med-60% Long-15%
WR-75% TE-25% HB-0%

Leading Passer:
http://goallineblitz.com/game/player.pl?player_id=334773
14QB

Leading receiver:
http://goallineblitz.com/game/player.pl?player_id=310762
16WR

http://goallineblitz.com/game/player.pl?player_id=562746
10WR

http://goallineblitz.com/game/player.pl?player_id=110894
16TE





RUSHING:
Rushing stats/ Running/Ball RATIO spread Per Game;
ATT/YDS: 18.8- 41.5yds 2.2p/c
HB-100% FB-0% QB-0%
INSIDE/OUTSIDE: 40%/60%

Leading Rusher HB lvl15
http://goallineblitz.com/game/player.pl?player_id=179710


Elusive HB lvl13
http://goallineblitz.com/game/player.pl?player_id=96483


Leading O-Linemen: lvl17 ROT
http://goallineblitz.com/game/player.pl?player_id=290924


lvl16 LOT
http://goallineblitz.com/game/player.pl?player_id=105215



I've seen one that was similar but you had to download a php server and a bunch of junk and figured someone would know how to make that easier. Thanks!


This is what you need: http://userscripts.org/scripts/show/28938
 
jnwillis
offline
Link
 
That's extremly close to what I'm looking for. I was hoping for a season talley of the stats, like i have listed above. The percentages are from the season so far. Perhaps have the same layout, but have it posted with the team page, or above team leaders stats?
 
DaRealest
offline
Link
 
Originally posted by jtwillis
That's extremly close to what I'm looking for. I was hoping for a season talley of the stats, like i have listed above. The percentages are from the season so far. Perhaps have the same layout, but have it posted with the team page, or above team leaders stats?


My suggestion: Just copy the information from each game into an Excel spreadsheet and calculate it for the season.
 
jnwillis
offline
Link
 
Originally posted by DaRealest
Originally posted by jtwillis

That's extremly close to what I'm looking for. I was hoping for a season talley of the stats, like i have listed above. The percentages are from the season so far. Perhaps have the same layout, but have it posted with the team page, or above team leaders stats?


My suggestion: Just copy the information from each game into an Excel spreadsheet and calculate it for the season.


LOL, anyway to explain how to do that. I've never used excel sorry.
 
blbrchnk
offline
Link
 
Originally posted by DaRealest
Originally posted by jtwillis

That's extremly close to what I'm looking for. I was hoping for a season talley of the stats, like i have listed above. The percentages are from the season so far. Perhaps have the same layout, but have it posted with the team page, or above team leaders stats?


My suggestion: Just copy the information from each game into an Excel spreadsheet and calculate it for the season.


I don't know if there is another way to do it or not, but when I paste the stuff into excel, it puts it all into one cell which is not very helpful. Is there a way to use a delimiter to force it to break up all the numbers into different columns/rows? Or do you just have to do it manually?
 
DaRealest
offline
Link
 
Originally posted by blbrchnk
Originally posted by DaRealest

Originally posted by jtwillis


That's extremly close to what I'm looking for. I was hoping for a season talley of the stats, like i have listed above. The percentages are from the season so far. Perhaps have the same layout, but have it posted with the team page, or above team leaders stats?


My suggestion: Just copy the information from each game into an Excel spreadsheet and calculate it for the season.


I don't know if there is another way to do it or not, but when I paste the stuff into excel, it puts it all into one cell which is not very helpful. Is there a way to use a delimiter to force it to break up all the numbers into different columns/rows? Or do you just have to do it manually?


Just copy the information and paste it into cells. The first one I did was the first block, which is 6 cells across. Just select 6 cells across in your Excel spreadsheet and go down about 12 cells, making sure all of them get selected/highlighted (Hold the Shift key to select a range or the Ctrl key to select each cell). Then you paste what you've copied into that selected area. It may say something like "Data on the Clip Board is not the same size. Do you want to paste the data anyway?", just click OK.

It might take a couple of tries, if you haven't copied it correctly, but it works.
 
Page:
 


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