User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
manic
offline
Link
 
Originally posted by Raiyn
I can't get the friends list script to work.

//Friend 1
//ID -
var id1='9761'
//name -
var name1='Zeke Woodson'

All I did was change the id and name to my friend, but when I click the link it just takes me to my home page without the friends list, the url would be the exact same as if I clicked on Bort's link, just with a different id number. Any ideas?


try making the name lowercase..
 
Dravz
offline
Link
 
Originally posted by pabst
Like cbrown said, it's the kickoff bug. Should be fixed in the new one (which also adds a few more surprises).


Ah ha, thank you, sir!
 
Raiyn
offline
Link
 
Originally posted by manic
Originally posted by Raiyn

I can't get the friends list script to work.

//Friend 1
//ID -
var id1='9761'
//name -
var name1='Zeke Woodson'

All I did was change the id and name to my friend, but when I click the link it just takes me to my home page without the friends list, the url would be the exact same as if I clicked on Bort's link, just with a different id number. Any ideas?


try making the name lowercase..


didn't work

*EDIT*: Ok now I figured it out! I was putting in the Player ID and not the USER ID lol!!
Last edited Jun 25, 2008 08:46:57
 
Link
 
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
Last edited Jun 25, 2008 09:10:36
 
gsd17
offline
Link
 
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


It works fine but a little slower I can tell.
 
Link
 
Originally posted by gsd17
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


It works fine but a little slower I can tell.


I figured that would be the case as each player on the page is firing off an query to another page to grab the cash amount, thanks for testing it!
 
Link
 
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.
 
mw54finest
offline
Link
 
Originally posted by sirnotappearinginthisfilm

I figured that would be the case as each player on the page is firing off an query to another page to grab the cash amount, thanks for testing it!


added your script to the forum.
http://glbscripts.myfreeforum.org/about55.html

I also agree that the position needs to be next to the energy bar. For me some of the cash was off the box far enough where it hides behind the box below.
Last edited Jun 25, 2008 09:48:01
 
Link
 
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.
 
DaRealest
offline
Link
 
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>
 
mw54finest
offline
Link
 
DaRealest, I thought I saw that somewhere in this thread.
Thanks it looks much better that way. And thanks to you sirnotappearinginthisfilm for modifying the script!! I added screen shot of both.
 
dnooner
offline
Link
 
Any idea why I cant edit/create user scripts?
 
mw54finest
offline
Link
 
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
Last edited Jun 25, 2008 10:54:22
 
bluprintkok
offline
Link
 
now is there a link to the whole code with da realest's changes?
 
Link
 
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.
Last edited Jun 25, 2008 11:02:21
 
Page:
 


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