Archive for glbscripts.myfreeforum.org Forum dedicated to Greasemonkey Scripts made for Goal Line Blitz online game.
 



       glbscripts.myfreeforum.org Forum Index -> Modified Scripts
ddcunderground

Cash to Homepage II modfied to now include Training Value

Alright so I tried to do this and SNAITF bailed me out and fixed everything I screwed up. So this is actually SNAITF's work but I didn't see it get posted so I figured i would post it. This mod adds the current value of whatever you are training to the homepage.
screen shot included


Click to see full size image

here is the script.

http://userscripts.org/scripts/show/29461
m1k3

cool, now make it be able to change from relax, normal, intense and what your training an it will be sick Very Happy!!
SyedAshrafulla

what's the script that gets the other stuff on that image (equipment/SP/tactics, depth/leaders)
serialced

is it possible that the training value only works for the first player you created/1 player?

here is what I mean:
pabst

From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box.  It should start working again once the season starts.
pabst

SyedAshrafulla wrote:
what's the script that gets the other stuff on that image (equipment/SP/tactics, depth/leaders)


That's the player links script.

http://www.fantasymvp.net/glbplayerlinks.user.js
serialced

pabst wrote:
From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box.  It should start working again once the season starts.


but wouldnt it just not work at all instead of showing it for just 1 player?

i dunno for sure but i hope you're right and it seems like a valid explanation, i just find it weird that it still works for 1 player though
pabst

serialced wrote:
pabst wrote:
From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box.  It should start working again once the season starts.


but wouldnt it just not work at all instead of showing it for just 1 player?

i dunno for sure but i hope you're right and it seems like a valid explanation, i just find it weird that it still works for 1 player though


The script finds the training links by basically counting the rows in all the player boxes.  The first next game link appears after the first training row, which means the first player isn't affected at all.  However, the second player's training row (and every row thereafter) is now mathematically closer to the first row which is why they're broken.  The math doesn't work anymore.
serialced

pabst wrote:
serialced wrote:
pabst wrote:
From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box.  It should start working again once the season starts.


but wouldnt it just not work at all instead of showing it for just 1 player?

i dunno for sure but i hope you're right and it seems like a valid explanation, i just find it weird that it still works for 1 player though


The script finds the training links by basically counting the rows in all the player boxes.  The first next game link appears after the first training row, which means the first player isn't affected at all.  However, the second player's training row (and every row thereafter) is now mathematically closer to the first row which is why they're broken.  The math doesn't work anymore.


oh nice to know, thanks a lot for the info!
ddcunderground

exactly Pabst is right I am thinking of changing the way it works so it doesn't assume the location
JOSH2OTTER

anyone updating this or is there another that actually works?
ddcunderground

I use it every day what is it not doing?
mw54finest

It works fine for me too. Smile
SyedAshrafulla

where do you pull the attribute value from? i would suggest pulling it from the skill points assignment page instead of the specific player's home page, because the un-equipped value is what's important for training analysis right?
rlranger

mine doesnt work anymore?
mw54finest

rlranger wrote:
mine doesnt work anymore?


Mines still works.  If you have a lot of scripts, (or more than 2) running on the home page, it make things run better to set a delay on some scripts.

Edit the script and find
Code:

var timeout = 0;


Change the 0 to 3000.  This will delay running the script for 3 seconds and should not interfere with other scipts.
cheech1223

Cash no longer showing up on homepage.  It is because Bort changed around the player profile pages and the script is taking the information from the wrong cell ("skill points" instead of "Cash").  Any word how to fix this?
cheech1223

I took a random ass guess, and somehow fixed it!  here's what to change.  Open up the script and edit the following:

Three places to make the exact same changes.  Look for the following:
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>');

- Now, change the 18 to a 20.  Do that in the three places in the script.  Cash is now displayed.  
- As for what is training.  Since we aren't really training each night i don't know how this will end up showing up.  For now, I think it won't be necessary any longer.
ddcunderground

awesome job fixing it sorry i didn't get back sooner. This script and others are now incorporated in the homepage rewrite script.

       glbscripts.myfreeforum.org Forum Index -> Modified Scripts
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum