User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
Link
 
Cool thanks.

What free downloadable text editor do you guys recommend? Using notepad is kind of cumbersome.
 
Cronus6
offline
Link
 
Originally posted by Wrath Of Conor


Yeah, I currently have gmail notifier. I don't have to be in my gmail account and the notifier add on checks for every 5 minutes or so (you can set the frequency) and lets me know how many unread messages I have. Here's the addon link: https://addons.mozilla.org/en-US/firefox/addon/173

If you could rig something to check your GLB inbox and display a new message count similar to the gmail notifier it would be very useful for folks I think. That way you could be out of the site or wherever and you'd know you had a new message and you don't have to keep checking the home page.


I use Page Update Checker to check my inbox here and team forums it works pretty well.
https://addons.mozilla.org/en-US/firefox/addon/920



 
Link
 
try this one:

http://www.editpadpro.com/editpadlite.html

btw does the glb friends list script work alrite?
 
Link
 
Originally posted by yomamathecableguy
try this one:

http://www.editpadpro.com/editpadlite.html

btw does the glb friends list script work alrite?


Yeah works great. Thanks for your help and work.
 
Link
 
no problem. do you have any more script suggestions?
 
Link
 
Originally posted by yomamathecableguy
no problem. do you have any more script suggestions?


Always!

And this could be a good suggestion for GLB anyway.

But I'm an owner and on the roster page I can see all the players energy and morale, however if I go to that player's profile energy and morale are not hidden.

I don't know how possible it would be to pull the energy and morale from the roster page and show it on the player page.

Also, possibility of adding the online/offline indicator to the friends list?
 
Link
 
i sent a pm to bort asking how i would determine if a person was online/offline with a script, but he hasn't replied yet. i was wanting to add that too.

um, something like that would mean that you would have to query the server and...
1) that would take a long time to load
2) i have no idea how to do it

i'm talking to a couple of people right now trying to figure out how to do something like that, though, so i may be able to do it eventually. any other suggestions? lol
 
Link
 
Not that I can think of right now.

Also thanks to Cronus6 for the page updater add on it works and you can set it up to check more than just your inbox. So far I have it set up for my inbox and team forums.
 
Link
 
yes, thanx Cronus. it's very helpful so that you don't have to keep going in between pages and reload all the time
 
Link
 
i've finally got it. i can get information from external pages. i made a script that adds your players cash to the home page. check it out:

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

this one requires a little bit of setup, not too much, but some.

this is the layout of each "block":

GM_xmlhttpRequest({
method: 'GET',
url: 'http://goallineblitz.com/game/player.pl?player_id=432283',
headers: {
'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
'Accept': 'application/atom+xml,application/xml,text/xml',
},
onload: function(cash) {
var response1=cash.responseText
var cash=response1.split('<td class="stat_head">');
var cash1=cash[18].split('<td class="stat_value">');
var cash2=cash1[1].split('</td>');
var container=document.getElementById('content')
var playerbox=getElementsByClassName('player_vitals',document)
playerbox[0].innerHTML = playerbox[0].innerHTML +
"<tr><td class='player_vital_head'>Cash:</td><td>" + cash2[0] + "</td>" +
"</tr>"
}
});

1)where it says url: 'http://goal.....', put your player's url.
2) in the 4th line up from the bottom, there is a line playerbox[0].inner......
look at what position the specified player is on the page. top left is 1, top right is 2, second left is 3, etc. subtract one from this. now put that number in for the 0 in both innerHTML's.
3)to add more players, simply copy the above block of code, paste it at the bottom of the script, and repeat steps 1 and 2

ask if you need help
 
Link
 
also, conor, if you will get me the html source code of the page that shows the player's energy and morale i can work on that script for you. (i also need the url duh)
 
Dravz
offline
Link
 
Originally posted by RandomBeast
You'll also need a 16x16 image you want to show up for your player.


Is there any way we can get a generic version of this that just replaces your player's dot with a red version of the same dot (with the position still labeled on it)? I don't want a blank red dot or a stick man or something else, and I don't want to edit 12 different scripts for my 12 different players. There any way to do this?

Forest's script was the closest thing, though I guess it didn't work so he killed it.
 
RandomBeast
offline
Link
 
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.
Last edited Jun 6, 2008 20:40:33
 
scarletmbb
offline
Link
 
Alright, I updated Jed's post to include all the new scripts. If I'm missing any please let me know. You guys are awesome, thanks for doing this.
 
madet0rder
offline
Link
 
Originally posted by scarletmbb
Alright, I updated Jed's post to include all the new scripts. If I'm missing any please let me know. You guys are awesome, thanks for doing this.


Great! Thanks scar.
 
Page:
 


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