this works great , i only got 3 players, so you ll still have to wait to see how that works. I just used the default setting thats where i wanted it initially. Thanks for the time awesome script
dnooner
offline
offline
Originally posted by mw54finest
Originally posted by dnooner
Any idea why I cant edit/create user scripts?
Is it your own installed scripts you are trying to edit?
When you click on "edit" from Manage User Scripts, where does it take you? Did you link a text editor?
Found this buried at page 36. It might help.
http://wiki.greasespot.net/FAQ#Why_doesn.27t_the_New_Userscript_command_open_anything.3F
If a script is already made, I can get it just fine. But when I'm trying to make one (Highlight player) once I click okay, nothing is coming up at all. No text editor, or list of text editors.
Originally posted by dnooner
Any idea why I cant edit/create user scripts?
Is it your own installed scripts you are trying to edit?
When you click on "edit" from Manage User Scripts, where does it take you? Did you link a text editor?
Found this buried at page 36. It might help.
http://wiki.greasespot.net/FAQ#Why_doesn.27t_the_New_Userscript_command_open_anything.3F
If a script is already made, I can get it just fine. But when I'm trying to make one (Highlight player) once I click okay, nothing is coming up at all. No text editor, or list of text editors.
Last edited Jun 25, 2008 11:42:56
RandomBeast
offline
offline
FYI - I was having a problem with the cash script working together with the sort players script. Sort players was on a 100ms timeout delay and was running after the cash script started processing, and the wrong cash was showing under the players.
I just added a timeout of 500ms to the cash script and it now works fine, even if your players are sorted in an order other than date created. (I prefer next game, personally)
I just added a timeout of 500ms to the cash script and it now works fine, even if your players are sorted in an order other than date created. (I prefer next game, personally)
Wrath Of Conor
offline
offline
Originally posted by dnooner
Originally posted by mw54finest
Originally posted by dnooner
Any idea why I cant edit/create user scripts?
Is it your own installed scripts you are trying to edit?
When you click on "edit" from Manage User Scripts, where does it take you? Did you link a text editor?
Found this buried at page 36. It might help.
http://wiki.greasespot.net/FAQ#Why_doesn.27t_the_New_Userscript_command_open_anything.3F
If a script is already made, I can get it just fine. But when I'm trying to make one (Highlight player) once I click okay, nothing is coming up at all. No text editor, or list of text editors.
Did you try the about:config tip from the link that's in your post?
You could also create an account at userscripts.org where most of everyone's scripts are stored and create your scripts there by adding a new script and choosing to input source manually. It gives you a window to enter the script text. This also gives a central location for all of your scripts too if you want to load them on oether computers you can just log in and install it from there.
Originally posted by mw54finest
Originally posted by dnooner
Any idea why I cant edit/create user scripts?
Is it your own installed scripts you are trying to edit?
When you click on "edit" from Manage User Scripts, where does it take you? Did you link a text editor?
Found this buried at page 36. It might help.
http://wiki.greasespot.net/FAQ#Why_doesn.27t_the_New_Userscript_command_open_anything.3F
If a script is already made, I can get it just fine. But when I'm trying to make one (Highlight player) once I click okay, nothing is coming up at all. No text editor, or list of text editors.
Did you try the about:config tip from the link that's in your post?
You could also create an account at userscripts.org where most of everyone's scripts are stored and create your scripts there by adding a new script and choosing to input source manually. It gives you a window to enter the script text. This also gives a central location for all of your scripts too if you want to load them on oether computers you can just log in and install it from there.
Wrath Of Conor
offline
offline
Originally posted by RandomBeast
FYI - I was having a problem with the cash script working together with the sort players script. Sort players was on a 100ms timeout delay and was running after the cash script started processing, and the wrong cash was showing under the players.
I just added a timeout of 500ms to the cash script and it now works fine, even if your players are sorted in an order other than date created. (I prefer next game, personally)
I was about to post that the sort and cash scripts weren't working as well as I had previously thought.
RB- could you post the timeout line and tell idiots like me where to insert it in the script?
FYI - I was having a problem with the cash script working together with the sort players script. Sort players was on a 100ms timeout delay and was running after the cash script started processing, and the wrong cash was showing under the players.
I just added a timeout of 500ms to the cash script and it now works fine, even if your players are sorted in an order other than date created. (I prefer next game, personally)
I was about to post that the sort and cash scripts weren't working as well as I had previously thought.
RB- could you post the timeout line and tell idiots like me where to insert it in the script?
DaRealest
offline
offline
Originally posted by sirnotappearinginthisfilm
Originally posted by DaRealest
Originally posted by sirnotappearinginthisfilm
Originally posted by Wrath Of Conor
Originally posted by sirnotappearinginthisfilm
found "Add cash to player home page" on userscripts.org:
http://userscripts.org/scripts/show/27967
I liked it, but, I didn't like the fact you had to hard code the player URLs. I've modified this to dynamically get the cash amount for all players on the page, no hard coding required. I tested this on my own page (I have 3 players) would be curious to see how well it works for someone with a lot of players.
my modified version
http://userscripts.org/scripts/show/29108
I like this script as now I can sort the players and the cash item stays with the correct player. I do have one question. Could you modify the script or tell me how to so I can put the cash item next to the energy bar rather than on its own row? At my screen resolution it's outside the normal player box and there should be plenty of room next to the energy bar.
The cash amount outside of the gray box was something I wasn't able to fix. This script adds another row to a table element, theoretically it should expand the table background color to extend with the addition of the row, but, it doesn't and I don't know why.
Is it possible to put the cash to the right of the Energy bar? Yes but it will require some alteration of the script, I don't mind do it, it just may take a bit.
Could the actual $ amount be Bolded and a different color, such as Dark Blue or something? I actually used someone else's suggestion and changed the code so that the cash went to the left, under the player's XP.
Just changed the following:
var playerbox=getElementsByClassName('player_vitals',document) to
var playerbox=getElementsByClassName('player_left_side',document)
For the Bolding, this is how it should look:
class='player_vital_head'>Cash:</td><td><b>" + cash2[0] + "</b></td>
OK, being the anal coding person I am I've modified it even further
I've added a customization ability to have the cash display in the three different locations talked about here(including realest's changes):
below the energy bar
to the right of the energybar
below the XP(I removed the word cash and just displayed the dollar amount)
see the greasemonkey page for instructions on how to do this:
http://userscripts.org/scripts/show/29108
if you installed one of the first versions just delete it and install the most updated version.
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.
Originally posted by DaRealest
Originally posted by sirnotappearinginthisfilm
Originally posted by Wrath Of Conor
Originally posted by sirnotappearinginthisfilm
found "Add cash to player home page" on userscripts.org:
http://userscripts.org/scripts/show/27967
I liked it, but, I didn't like the fact you had to hard code the player URLs. I've modified this to dynamically get the cash amount for all players on the page, no hard coding required. I tested this on my own page (I have 3 players) would be curious to see how well it works for someone with a lot of players.
my modified version
http://userscripts.org/scripts/show/29108
I like this script as now I can sort the players and the cash item stays with the correct player. I do have one question. Could you modify the script or tell me how to so I can put the cash item next to the energy bar rather than on its own row? At my screen resolution it's outside the normal player box and there should be plenty of room next to the energy bar.
The cash amount outside of the gray box was something I wasn't able to fix. This script adds another row to a table element, theoretically it should expand the table background color to extend with the addition of the row, but, it doesn't and I don't know why.
Is it possible to put the cash to the right of the Energy bar? Yes but it will require some alteration of the script, I don't mind do it, it just may take a bit.
Could the actual $ amount be Bolded and a different color, such as Dark Blue or something? I actually used someone else's suggestion and changed the code so that the cash went to the left, under the player's XP.
Just changed the following:
var playerbox=getElementsByClassName('player_vitals',document) to
var playerbox=getElementsByClassName('player_left_side',document)
For the Bolding, this is how it should look:
class='player_vital_head'>Cash:</td><td><b>" + cash2[0] + "</b></td>
OK, being the anal coding person I am I've modified it even further

I've added a customization ability to have the cash display in the three different locations talked about here(including realest's changes):
below the energy bar
to the right of the energybar
below the XP(I removed the word cash and just displayed the dollar amount)
see the greasemonkey page for instructions on how to do this:
http://userscripts.org/scripts/show/29108
if you installed one of the first versions just delete it and install the most updated version.
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.mw54finest
offline
offline
Originally posted by Wrath Of Conor
I was about to post that the sort and cash scripts weren't working as well as I had previously thought.
RB- could you post the timeout line and tell idiots like me where to insert it in the script?
http://userscripts.org/scripts/show/29121
added 500ms delay. Works with sort player.
I was about to post that the sort and cash scripts weren't working as well as I had previously thought.
RB- could you post the timeout line and tell idiots like me where to insert it in the script?
http://userscripts.org/scripts/show/29121
added 500ms delay. Works with sort player.
mw54finest
offline
offline
Originally posted by DaRealest
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.
Follow his link or http://glbscripts.myfreeforum.org/about55.html.
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.Follow his link or http://glbscripts.myfreeforum.org/about55.html.
sirnotappearinginthisfilm
offline
offline
Originally posted by DaRealest
Originally posted by sirnotappearinginthisfilm
Originally posted by DaRealest
Originally posted by sirnotappearinginthisfilm
Originally posted by Wrath Of Conor
Originally posted by sirnotappearinginthisfilm
found "Add cash to player home page" on userscripts.org:
http://userscripts.org/scripts/show/27967
I liked it, but, I didn't like the fact you had to hard code the player URLs. I've modified this to dynamically get the cash amount for all players on the page, no hard coding required. I tested this on my own page (I have 3 players) would be curious to see how well it works for someone with a lot of players.
my modified version
http://userscripts.org/scripts/show/29108
I like this script as now I can sort the players and the cash item stays with the correct player. I do have one question. Could you modify the script or tell me how to so I can put the cash item next to the energy bar rather than on its own row? At my screen resolution it's outside the normal player box and there should be plenty of room next to the energy bar.
The cash amount outside of the gray box was something I wasn't able to fix. This script adds another row to a table element, theoretically it should expand the table background color to extend with the addition of the row, but, it doesn't and I don't know why.
Is it possible to put the cash to the right of the Energy bar? Yes but it will require some alteration of the script, I don't mind do it, it just may take a bit.
Could the actual $ amount be Bolded and a different color, such as Dark Blue or something? I actually used someone else's suggestion and changed the code so that the cash went to the left, under the player's XP.
Just changed the following:
var playerbox=getElementsByClassName('player_vitals',document) to
var playerbox=getElementsByClassName('player_left_side',document)
For the Bolding, this is how it should look:
class='player_vital_head'>Cash:</td><td><b>" + cash2[0] + "</b></td>
OK, being the anal coding person I am I've modified it even further
I've added a customization ability to have the cash display in the three different locations talked about here(including realest's changes):
below the energy bar
to the right of the energybar
below the XP(I removed the word cash and just displayed the dollar amount)
see the greasemonkey page for instructions on how to do this:
http://userscripts.org/scripts/show/29108
if you installed one of the first versions just delete it and install the most updated version.
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.
to adjust to the other locations, at the top of the script you will see the line:
var displayLocation = { BelowEnergy:false, RightOfEnergy:false, BelowXP:true};
notice how BelowXP:true is set to true, set that to false and set one of the others to true, so to see the cash amount below energy it should look like this:
var displayLocation = { BelowEnergy:true, RightOfEnergy:false, BelowXP:false};
to see it to the right of energy it should look like this:
var displayLocation = { BelowEnergy:false, RightOfEnergy:true, BelowXP:false};
I'm going to leave the script as it is and let people tweak it instead of making a lot of minor changes. If you would like to add the word "Cash:" to the left of the dollar amount when it appears under the XP look in the function named getCash3 and change this line:
"<div style='font-weight:700;text-align:center'>" + cash2[0] + "</div>"
to this line:
"<div style='font-weight:700;text-align:center'>Cash: " + cash2[0] + "</div>"
Originally posted by sirnotappearinginthisfilm
Originally posted by DaRealest
Originally posted by sirnotappearinginthisfilm
Originally posted by Wrath Of Conor
Originally posted by sirnotappearinginthisfilm
found "Add cash to player home page" on userscripts.org:
http://userscripts.org/scripts/show/27967
I liked it, but, I didn't like the fact you had to hard code the player URLs. I've modified this to dynamically get the cash amount for all players on the page, no hard coding required. I tested this on my own page (I have 3 players) would be curious to see how well it works for someone with a lot of players.
my modified version
http://userscripts.org/scripts/show/29108
I like this script as now I can sort the players and the cash item stays with the correct player. I do have one question. Could you modify the script or tell me how to so I can put the cash item next to the energy bar rather than on its own row? At my screen resolution it's outside the normal player box and there should be plenty of room next to the energy bar.
The cash amount outside of the gray box was something I wasn't able to fix. This script adds another row to a table element, theoretically it should expand the table background color to extend with the addition of the row, but, it doesn't and I don't know why.
Is it possible to put the cash to the right of the Energy bar? Yes but it will require some alteration of the script, I don't mind do it, it just may take a bit.
Could the actual $ amount be Bolded and a different color, such as Dark Blue or something? I actually used someone else's suggestion and changed the code so that the cash went to the left, under the player's XP.
Just changed the following:
var playerbox=getElementsByClassName('player_vitals',document) to
var playerbox=getElementsByClassName('player_left_side',document)
For the Bolding, this is how it should look:
class='player_vital_head'>Cash:</td><td><b>" + cash2[0] + "</b></td>
OK, being the anal coding person I am I've modified it even further

I've added a customization ability to have the cash display in the three different locations talked about here(including realest's changes):
below the energy bar
to the right of the energybar
below the XP(I removed the word cash and just displayed the dollar amount)
see the greasemonkey page for instructions on how to do this:
http://userscripts.org/scripts/show/29108
if you installed one of the first versions just delete it and install the most updated version.
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.to adjust to the other locations, at the top of the script you will see the line:
var displayLocation = { BelowEnergy:false, RightOfEnergy:false, BelowXP:true};
notice how BelowXP:true is set to true, set that to false and set one of the others to true, so to see the cash amount below energy it should look like this:
var displayLocation = { BelowEnergy:true, RightOfEnergy:false, BelowXP:false};
to see it to the right of energy it should look like this:
var displayLocation = { BelowEnergy:false, RightOfEnergy:true, BelowXP:false};
I'm going to leave the script as it is and let people tweak it instead of making a lot of minor changes. If you would like to add the word "Cash:" to the left of the dollar amount when it appears under the XP look in the function named getCash3 and change this line:
"<div style='font-weight:700;text-align:center'>" + cash2[0] + "</div>"
to this line:
"<div style='font-weight:700;text-align:center'>Cash: " + cash2[0] + "</div>"
DaRealest
offline
offline
Originally posted by mw54finest
Originally posted by DaRealest
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.
Follow his link or http://glbscripts.myfreeforum.org/about55.html.
Saw that afterwards. But, when I switched it so it was to the right of the Energy, It came back with Cash: $whatever the player's cash is. I'd rather see the sum in Bold, as well as Cash/Chedda/Bling/Mullah, whatever in bold.
Originally posted by DaRealest
How about you put back the word Cash, or change it to Chedda
Also, how do you adjust it to the other locations.Follow his link or http://glbscripts.myfreeforum.org/about55.html.
Saw that afterwards. But, when I switched it so it was to the right of the Energy, It came back with Cash: $whatever the player's cash is. I'd rather see the sum in Bold, as well as Cash/Chedda/Bling/Mullah, whatever in bold.
mw54finest
offline
offline
Lol! Umm.. you know you can edit the text to whatever you want. You DaMan! I mean DaRealest! 

DaRealest
offline
offline
To change the word Cash to whatever you want, just find this line:
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;'>" + cash2[0] +
And change it to...basically whatever you want:
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Chedda:</span><span style='padding-left:10px;'>" + cash2[0] +
But, my actual cash figure isn't bolded. Hmmmmmmmm......
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;'>" + cash2[0] +
And change it to...basically whatever you want:
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Chedda:</span><span style='padding-left:10px;'>" + cash2[0] +
But, my actual cash figure isn't bolded. Hmmmmmmmm......
DaRealest
offline
offline
Originally posted by mw54finest
Lol! Umm.. you know you can edit the text to whatever you want. You DaMan! I mean DaRealest!
BTW, I just registered on the site: DaRealest.
Lol! Umm.. you know you can edit the text to whatever you want. You DaMan! I mean DaRealest!

BTW, I just registered on the site: DaRealest.
sirnotappearinginthisfilm
offline
offline
Originally posted by DaRealest
To change the word Cash to whatever you want, just find this line:
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;'>" + cash2[0] +
And change it to...basically whatever you want:
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Chedda:</span><span style='padding-left:10px;'>" + cash2[0] +
But, my actual cash figure isn't bolded. Hmmmmmmmm......
to bold the cash figure either put <b> </b> around the cash figure
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;'><b>" + cash2[0] + "</b></span>"
or add font-weight:700 to the style of the span before it
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;font-weight:700'>" + cash2[0] + "</span>"
oh, and I did notice mw54 made a modified version with a timeout, sounds like others need that as well, so I added that to my script as well, configurable at the top, by default it is zero.
http://userscripts.org/scripts/show/29108
To change the word Cash to whatever you want, just find this line:
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;'>" + cash2[0] +
And change it to...basically whatever you want:
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Chedda:</span><span style='padding-left:10px;'>" + cash2[0] +
But, my actual cash figure isn't bolded. Hmmmmmmmm......
to bold the cash figure either put <b> </b> around the cash figure
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;'><b>" + cash2[0] + "</b></span>"
or add font-weight:700 to the style of the span before it
theCash.innerHTML = "<span style='font-weight:700; padding-left:10px;'>Cash:</span><span style='padding-left:10px;font-weight:700'>" + cash2[0] + "</span>"
oh, and I did notice mw54 made a modified version with a timeout, sounds like others need that as well, so I added that to my script as well, configurable at the top, by default it is zero.
http://userscripts.org/scripts/show/29108
Last edited Jun 25, 2008 12:50:34
mw54finest
offline
offline
Originally posted by DaRealest
BTW, I just registered on the site: DaRealest.
I set you up with dev forum access.
sirnot, don't worry about DaRealest. He knows how to do it. He is the one posted how to do it in the first place.
Also if you update your script, keep it in the same link. That way if I miss it for some reason, my link will still take users there.
BTW, I just registered on the site: DaRealest.
I set you up with dev forum access.
sirnot, don't worry about DaRealest. He knows how to do it. He is the one posted how to do it in the first place.
Also if you update your script, keep it in the same link. That way if I miss it for some reason, my link will still take users there.
You are not logged in. Please log in if you want to post a reply.



























