Yahoo Fantasy Football Free Stats

By jk- Last update Nov 9, 2008 — Installed 18,376 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 52 posts, 31 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
NyCon User

Script sucks... never seems to work!

 
jimmykg User

Is there any way I can switch to fractional points instead of rounding to zero every time? Any help would be greatly appreciated, thanks.

 
Macleod User

I see Kbob's newest code allows for points per reception or completion. However, in practice it doesn't seem to calculate those points. Also, the defensive points are not scoring correctly at all. Anyone else having these issues? Any suggestions? Also, how would one add points per carry?

By the way, kudos to jk/kbob for all the hard work on these codes. This rocks!

 
NyCon User

Its doesnt do scores... just stats?

 
los conquist... User

hey jk/kbob. i was wondering if i sent you the settings for my league if you could send me a script for it??? I want to do it but I will be away on business from Wed. - Sun. Also, could you fix kickers and defensive players?? Kickers don't seem to be getting points for field goals and there is nothing made for defensive players. Instead of having tackles, sacks, and tackle assists as a team thing make it for each individual player. I would greatly appreciate it. Keep up the great work!!!

 
jk- Script's Author

Script should be fixed now.

KBob: I haven't had a chance to check it out but you should upload that script to the site. Since there is different scoring in each league I've always thought an xmlhttpRequest to the stat page, and parsing of thestat setting data would be the best way to do a point-calculating script but haven't had the time to experiment on it.

 
los conquist... User

nvm!!! got it to work. KBob i appreciate the code!!! could u help me with setting up pts for defensive players???

 
los conquist... User

OK im new at this. I installed the script at the top of this link and it doesn not work!!! How can i fix this ASAP?

 
miknugget User

Today at about 1:20pm ET the script stopped showing stats and scoring for my team. The stats and scoring work for every team except mine.

 
NyCon User

Pretty new at this, but i tried the one click install above. It doesn't seem to be working.

 
sportsluvr4lfe User

thank you :)

 
Rockmaninoff User

Steps to add this script manually to GreaseMonkey:
1. Visit the site, click on "Download."
2. Save the file in your Firefox directory:
-on XP it's "C:\Documents and Settings\YOURUSERNAME\Application Data\Mozilla\Firefox\Profiles\********.default\gm_scripts"
-on Vista it's "C:\Users\YOURUSERNAME\AppData\Roaming\Mozilla\Firefox\Profiles\********.default\gm_scripts"
where YOURUSERNAME is what you login with and the ***'s are random characters generated by Firefox
Save as File Type "All Files," and name it f41b9d6f2.user.js. You may still have to change the extension so that it's user.js after you save it, so make sure it doesn't end in ".txt"! The most important part is that it ends in "user.js" as an extension.
3. Within Firefox, right-click the GreaseMonkey icon, and select "New User Script."
4. Name this script whatever you'd like. For example, "New Fantasy Score Tracking."
5. Put whatever you'd like in the "Namespace" field and the "Description" field. For example, "asdf."
6. In the "Includes (One per line)" field, type "http://football.fantasysports.yahoo.com/f*" Make sure you include the * at the end!
7. It should create a sample user.js file. For example, if you used your title as "New Fantasy Score Tracking" the file created would be called "new_fantasy_score_tracki.user.js"
8. Overwrite the created file with the file you downloaded from the site. This can be done a number of ways. I simply deleted the created file from the folder within the gm_scripts directory, copied and pasted the f41b9d6f2.user.js file in, and renamed it to "new_fantasy_score_tracki.user.js"
9. Right-click on the GreaseMonkey icon again. This time select "Manager User Scripts..." In the left column, select your old fantasy script and disable it. Then, enable the new one.
10. You should be done! Piece of cake.

An alternative, shorter installation would be to simply overwrite your existing fantasy script. You could find it in the same gm_scripts directory. I prefer having a number of scripts to choose from, but to each their own. If you'd like to do this, simply download the file, remembering to save with the user.js extension, then open it with Notepad, and "Save As..." over your existing script.

 
sportsluvr4lfe User

i hate to be such a newbie but how to install the script from the pastebin link ...... on userscripts its just a simple install click ......

 
KBob User

Updated script again to correct similar parsing problem with team defense scores. http://pastebin.com/f41b9d6f2

 
nathanWI User

Thanks KBob! Script works great--we're back in business!

 
KBob User

Ugh. Looks like Yahoo changed something on the box score page, so it wasn't parsing stats correctly. You know, I really don't want to be debugging and coding in the middle of a crucial game on Sunday afternoon just so I can see my stats... Thanks, Yahoo :-(. Anyway, new version up on http://pastebin.com/f7d78df37 now. Seems to work fine again. At least you can use it for Monday night. Enjoy!

 
sportsluvr4lfe User

i agree with fantasy whoever fixes this would get my vote for best clutch performance

 
FantasyFiend User

Whoever fixes whatever is wrong with the stat-tracker so that it isn't stuck on the loading please stand by..... tab would win my award for best fantasy football code fix in a clutch situation...... Sooo uhhhh Please? Pretty please??? Fix it or I'll hold my breath!??!? ^_^

 
Rockmaninoff User

nathanWI, I'm having the same problem as well. I know nothing about coding, though, so no idea where the problem might lie.

 
tinylvis User

You aren't alone nathanWI. Seems to be hanging on 'Loading stats, stand by...'...its still early.

 
nathanWI User

Anybody else having problems with the script this week? Someone fix it! My brain won't do math on Sundays.

 
RonJobs User

Nevermind. I figured out that receptions are in row index #3. This is sweet!

 
RonJobs User

KBob,

Great edit! I'm wondering: how do I modify the code to include a point per reception? Thanks!

 
KBob User

I've hacked this script up quite a bit -- see http://pastebin.com/f3473db51; jk: feel free to incorporate what you like into your code.

It now displays the fantasy points scored (or at least most of them), displays team defense stats, and has a modified stylesheet. The fantasy points are controlled by a hard-coded object (sorry) called rotoScoring; change the values in it to match your scoring settings. The following offensive scoring is supported: receiving yards, receiving TDs, passing yards, passing TDs, passing interceptions, rushing yards, rushing TDs, 2-pt conversions, fumbles lost, point-afters kicked, and field goals made (separate scores for <= 19 yards, 20-29 yards, 30-39 yards, 40-49 yards, and 50+ yards). Defensive scoring supports: fumbles recovered, interceptions, sacks, TDs, and points allowed (separate scores for < 7, 7-13, 14-20, 21-27, 28-34, and 35+ points allowed). Some of the other stuff is too hard to parse, like blocked kicks. I could probably parse out safeties; I'll try to work on that.

Enjoy!

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