User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
intoxxx
offline
Link
 
Originally posted by cmfuld
that did it.

Thanks inboxxx


Glad I could help.
 
Jarlaxle
offline
Link
 
Love the work, but the scouting report numbers doesn't seem to work on centers
http://goallineblitz.com/game/player.pl?player_id=509598
for example
 
Forest21
offline
Link
 
http://userscripts.org/scripts/show/27696

Fixed
 
Jarlaxle
offline
Link
 
Thank you so much!
 
Forest21
offline
Link
 
Can anyone confirm that the updated "Sort Player" script can now correctly sort by the Date the player was created?

http://userscripts.org/scripts/show/27594
 
DaRealest
offline
Link
 
Originally posted by Forest21
Can anyone confirm that the updated "Sort Player" script can now correctly sort by the Date the player was created?

http://userscripts.org/scripts/show/27594


Yep, working perfectly!
 
Sir Galahad
offline
Link
 
Forest, great work again!

I can't wait to use the next highlight GM.
 
RandomBeast
offline
Link
 
If anyone is interested, I created a script that will replace your own player's dot in the game replays with a custom one.

It takes a little tweaking of the script for each person (replacing a player ID with your own ID, setting the image URL for image you want to use), so it can't be distributed via normal means.

(Of course, if someone better at js than me wants to take a crack at making it generic, feel free)

That said, contact me if interested.

Here's what it looks like:

http://img76.imageshack.us/img76/3792/coloredplayersot7.png
 
uberbad
offline
Link
 
That looks awesome RandomBeast! PM incoming
 
RandomBeast
offline
Link
 
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=265367" or something. 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.whatever.com/imageurl.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.
 
uberbad
offline
Link
 
works perfectly! Thanks RandomBeast!
 
TaintStick
offline
Link
 
n00b question....what website do you use to keep your images?
 
Dravz
offline
Link
 
Originally posted by RandomBeast
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.


I wish this player highlighting during replays was already in the game!
 
RandomBeast
offline
Link
 
Originally posted by TaintStick
n00b question....what website do you use to keep your images?


I used ImageShack, but any free online host or personal web page would probably work.
 
TaintStick
offline
Link
 
Got it! Thanks for the help randombeast...very nice.
Last edited Jun 3, 2008 14:39:43
 
Page:
 


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