Yahoo! Fantasy Hockey Stat Tracker

By bearzly Last update Mar 29, 2009 — Installed 9,915 times.

Future development

in
Subscribe to Future development 83 posts, 18 voices



yuzisee Scriptwright

Hey Bearzly,

The main comment thread got locked somehow, so I'm creating this thread.
Chris hasn't uploaded the "shorthanded" vs. "short handed" version yet, but the latest script at:
http://scriptsauce.com/yahoofantasyhockeystattr...
already had the SH% totals.

It basically creates a Player object along with the totals array when adding up the stats. Then, wherever the totals array is deemed not to apply, we fall back to the Player object if possible.

 
bearzly Script's Author

Whoever runs this site is certainly doing a lot of changing around...

Thanks for posting your version of the script. I'll take a look at it and try to incorporate your changes into the main version. Also I think I can take care of the shorthanded problem on my own :p

 
bearzly Script's Author

OK this is really starting to annoy me now. Not only are the ESPN box scores incredibly slow, but they also use a different played id system. I'm not exactly sure what I'm going to do now, because there is going to have to be a tradeoff somewhere.

 
FantoMelt User

I think in the long run this threated feedback will work better. Good to see somethings will be added to the script. H2H would be my most requested addition.

 
moca User

Is there any chance that you or someone else could make a script exactly like this but for basketball...also it would be amazing if you could put in the H2H option

 
bearzly Script's Author

There 's this for basketball http://userscripts.org/scripts/show/6177 I didn't write it so I won't be working on it if you were looking for something that looks like mine

 
moca User

ya ino i use that one now but yours for hockey is alot better so i was just wondering if you or any other users on this site could make one like urs for basketball

 
Kacz User

bearzly, Chis and friends are gonna stick to hockey first and foremost (I hope). I'm sure they're working on a great H2H script. Keep up the good work guys! I always look for the latest on here!

 
Kacz User

I don't know know what's going on, but I cannot download or install the script. Can anyone help me?

 
yuzisee Scriptwright

@Kacz: What sort or error are you getting?

@Bearzly: I noticed that Yahoo doesn't have a link for last night's Pit vs. Min game. So the script can't find its gameId. We would have to search an ESPN page by team name to get the gameId in that case.

 
bearzly Script's Author

Kacz, this may seem obvious but do you have greasemonkey installed?

And yuzisee, Yahoo screwed something up with your system. If you go to a league home page you'll see that that game was being reported as 1227150000 to 1 for pittsburgh. It's happening again today for the washington game but I expect they will fix it quickly.

 
Kacz User

@bearzly + yuzisee

I have Greasemonkey 0.8.20080609.0. This is what I'm getting when I try to install it:

Script could not be installed [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIChannel.open]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://greasemonkey/content/utils.js :: getContents :: line 244" data: no]

 
Chris MacDonald User

Did you try reinstalling Greasemonkey?
Which version of the script are you using? One from our site or from here?

 
bearzly Script's Author

I would recommend you uninstall your version, and reinstall from here https://addons.mozilla.org/en-US/firefox/addon/748

Also if you're using firefox 2 that might also be a problem

 
Kacz User

@ Chris and bearzly:

Uninstalled and re-installed Greasemonkey from that link and I still get the same error.
I'm using FF 3.0.4 and I'm trying to install the script from this site. I also tried it from the source that you posted as well, Chris.

 
Chris MacDonald User

Do ANY greasemonkey scripts work for you? Try something else from this site... like a gmail script or something. If not, you may need to reinstall firefox. If they work, then it's something about the hockey script.

 
Kacz User

@ Chris

Thanks. I had to uninstall and reinstall Firefox...so much with experimenting on Minefield...

 
bearzly Script's Author

I made a quick update to the script which adds autorun (had that sitting around for a while) and now some code to check for updates every day. Since TSN and ESPN were both failures, I'm sticking with yahoo for now until I can think of a better solution. I'm going to work on my H2H implementation and try to work that and SH%/SV% totals into a next big point release.

 
octodd User

Hey bearzly any estimate on when we can expect the next release?

 
bearzly Script's Author

I can't give you an exact time, but once I have everything laid out in my mind it should only take me a couple of hours. I might even do it tomorrow depending on how little I feel like doing homework.

 
Kacz User

So what's the autorun function about?

 
Hockey_Fan User

now that the script has the ability to add additional custom stat columns (which i noticed isn't on the features list btw and seems to work fine) is there anyway you could added a fantasy points function, that way people can just add the Fantasy Points Stat if they are in a private points league. it would be very much appreciated

i was thinking the member function would look something like the one below, i tried adding it in but don't know enough about java script to get it working properly

Player.prototype.fan = function() {
if (this.position() != 'G') {
//fantasypoints player calc
this._fan = this.g() * 2
+ this.a() * 1
+ this.p() * 0
+ this.shg() * 0.5
+ this.sog() * 0.1
+ this.gwg() * 0.5
+ this.pm() * 0
+ this.pim() * 0
+ this.ppg() * 0
+ this.ppa() * 0
+ this.sha() * 0
+ this.shp() * 0
+ this.shperc() * 0;
this._fan = this._fan.tofixed(3);
return this._fan;
} else {
//fantasypoints goalie calc
this._fan = this.ga() * 0
+ this.sa() * 0
+ this.sv() * 0.05
+ this.svperc() * 0
+ this.sho() * 3
+ this.w() * 2;

this._fan = this._fan.tofixed(3);
return this._fan;
}
};

thanks for the script bearzly, it helps fuel my fantasy hockey addiction :)

 
bkbk User

Is there a chance you could get this working for FF3 on a Mac? Still only see the big white square where the stats would be

 
bearzly Script's Author

@bkbk

Well, seeing as I use firefox 3 on a mac myself, I don't know what your problem could be. Can you be more descriptive about what happens with the script e.g. do you get the show stats button, what happens when you click on it etc.

@Hockey_Fan

I'm really sorry, I forgot all about the fantasy points thing. Once I've done the H2H stuff I will try to find a good way to implement it. There will still be a problem because some stats can't be reported but there's nothing else I can do without finding some better box scores. Also the add stat feature has been there from the beginning but mainly for me to test things, so I didn't think anyone would find it particularly helpful.

 
mmclaugh Scriptwright

bearzly, here is another place to check for stats, sportsline. They have faceoffs but don't seem to have the goalie stats on the boxscore. Here are the links to the yahoo and sportsline boxscores

http://www.sportsline.com/nhl/gamecenter/boxsco...
http://sports.yahoo.com/nhl/boxscore?gid=200811...

The numeric part is the same but instead of a game number, they list the teams playing. Maybe that has some potential. I almost wish my league didn't use faceoffs won because everything else in your script is perfect for me. I really like the autorun feature in the latest release.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel