User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
pabst
offline
Link
 
Originally posted by Crushr
Hell, I can't even get signed in on Firefox anymore.. WTH happened to it?


Probably this: http://www.glbwiki.com/index.php?title=Firefox_Login
 
pabst
offline
Link
 
Originally posted by DarrenAl
Originally posted by

Jed

Highlighting your player in the replay


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.


dunno why, but it doesn't work!!!
It's driving me crazy!
Please help me!!! the imagine is this: http://img691.imageshack.us/img691/3889/images1c.jpg


// ==UserScript==
// @name asdfasdfasdf
// @include http://goallineblitz.com/game/replay.pl?*pbp_id=*
// ==/UserScript==

window.setTimeout( function()
{
if(document.getElementById('XXXXXX')){
document.getElementById('XXXXXX').src = "http://img691.imageshack.us/img691/3889/images1c.jpg";
}
}
)
 
pabst
offline
Link
 
Originally posted by stevenmac03
Can someone help me find the script to transfer my AI to another team that I GM for?


http://userscripts.org/scripts/show/46116
 
pabst
offline
Link
 
Originally posted by greg_b_4
I downloaded the custom graphics on replay script... I'm not familiar with how scripts work, I know my other scripts just work automatically. How do I us the custom graphics.... I'm sure I have to edit the script somehow, could someone help.


Originally posted by pabst


1. install firefox: http://www.mozilla.org
2. run firefox and:
2a. install greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748
2b. install rewrite: http://userscripts.org/scripts/show/31640
2c. install rewrite lines: http://userscripts.org/scripts/show/54522
2d. install rewrite graphics: http://userscripts.org/scripts/show/54524
3. download an image to edit (the default replay field will work fine)
4. edit it
5. upload the results to tinypic/imageshack/imagecross/something (make sure it doesn't get resized)
6. add it somewhere in your team owner's note ( <field> your image address </field> or <field x="480" y="1080"> your 480x1080 old-style image address </field>
7. ????
8. profit!!!

If you need help with the actual image editing, google searches (or finding someone in the know with time to kill) are probably your best bet. If your resulting image is off-center, make sure it wasn't resized when you uploaded it, and make sure to use the x/y tags if it has a 480x1080 resolution


 
pabst
offline
Link
 
Originally posted by Joebarber
looking for the GLB player builder script...thanks


http://userscripts.org/scripts/show/54681
 
greg_b_4
offline
Link
 
Originally posted by pabst
Originally posted by greg_b_4

I downloaded the custom graphics on replay script... I'm not familiar with how scripts work, I know my other scripts just work automatically. How do I us the custom graphics.... I'm sure I have to edit the script somehow, could someone help.


Originally posted by pabst



1. install firefox: http://www.mozilla.org
2. run firefox and:
2a. install greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748
2b. install rewrite: http://userscripts.org/scripts/show/31640
2c. install rewrite lines: http://userscripts.org/scripts/show/54522
2d. install rewrite graphics: http://userscripts.org/scripts/show/54524
3. download an image to edit (the default replay field will work fine)
4. edit it
5. upload the results to tinypic/imageshack/imagecross/something (make sure it doesn't get resized)
6. add it somewhere in your team owner's note ( <field> your image address </field> or <field x="480" y="1080"> your 480x1080 old-style image address </field>
7. ????
8. profit!!!

If you need help with the actual image editing, google searches (or finding someone in the know with time to kill) are probably your best bet. If your resulting image is off-center, make sure it wasn't resized when you uploaded it, and make sure to use the x/y tags if it has a 480x1080 resolution





Where do I find the default field to edit?
 
DarrenAl
offline
Link
 
Originally posted by pabst
// ==UserScript==
// @name asdfasdfasdf
// @include http://goallineblitz.com/game/replay.pl?*pbp_id=*
// ==/UserScript==

window.setTimeout( function()
{
if(document.getElementById('XXXXXX')){
document.getElementById('XXXXXX').src = "http://img691.imageshack.us/img691/3889/images1c.jpg";
}
}
)


nope... still doesn't work
 
pabst
offline
Link
 
Originally posted by greg_b_4
Originally posted by pabst

Originally posted by greg_b_4


I downloaded the custom graphics on replay script... I'm not familiar with how scripts work, I know my other scripts just work automatically. How do I us the custom graphics.... I'm sure I have to edit the script somehow, could someone help.


Originally posted by pabst




1. install firefox: http://www.mozilla.org
2. run firefox and:
2a. install greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748
2b. install rewrite: http://userscripts.org/scripts/show/31640
2c. install rewrite lines: http://userscripts.org/scripts/show/54522
2d. install rewrite graphics: http://userscripts.org/scripts/show/54524
3. download an image to edit (the default replay field will work fine)
4. edit it
5. upload the results to tinypic/imageshack/imagecross/something (make sure it doesn't get resized)
6. add it somewhere in your team owner's note ( <field> your image address </field> or <field x="480" y="1080"> your 480x1080 old-style image address </field>
7. ????
8. profit!!!

If you need help with the actual image editing, google searches (or finding someone in the know with time to kill) are probably your best bet. If your resulting image is off-center, make sure it wasn't resized when you uploaded it, and make sure to use the x/y tags if it has a 480x1080 resolution





Where do I find the default field to edit?


Right click the GLB field and save it to disk, or find one of the graphics threads and use one of their fields.
 
pabst
offline
Link
 
Originally posted by DarrenAl
Originally posted by pabst

// ==UserScript==
// @name asdfasdfasdf
// @include http://goallineblitz.com/game/replay.pl?*pbp_id=*
// ==/UserScript==

window.setTimeout( function()
{
if(document.getElementById('XXXXXX')){
document.getElementById('XXXXXX').src = "http://img691.imageshack.us/img691/3889/images1c.jpg";
}
}
)


nope... still doesn't work


Works for me. Set the include line to the one listed in the script and change the X's to your player number.

If you're using the rewrite script, you have to turn it off. Rewrite preempts pretty much everything.
 
greg_b_4
offline
Link
 
Is there a script that will highlight players on your team in the endorsements section of the league page?
 
tsherr
offline
Link
 
Would someone point me to the script that shows you cap levels when you are assigning SPs?

T
 
tsherr
offline
Link
 
Found it: http://userscripts.org/scripts/show/47648

T
 
SrednaD
offline
Link
 
Is there a script that can transfer player age to roster page?
 
Dpride59
offline
Link
 
A script that tallies reverse pancakes? This would be awesome, so we could actually see a # next to our dt's
 
pabst
offline
Link
 
Originally posted by SrednaD
Is there a script that can transfer player age to roster page?


http://userscripts.org/scripts/show/56413
 
Page:
 


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