Not Working
![]() ![]() |
I've used Glenn Carr's script in the past (and even modified it myself a bit) but this new script is not working for me. Would really like to figure out what my issue is as I've wanted the FFtoday stats all along. The FFtoday Links are being displayed correctly as well as the matchup Legend color. But, I'm not getting individual player matchup background colors nor the tooltips correctly. The background colors are always white and the tooltips are saying "VS QB <no>". Does it matter which day of the week you check the matchups? |
![]() ![]() |
Hi Tbones, sorry y ou are having probelms. It shouldn't matter what day you check. I can take a look this evening. What browser are you using? Did it ever work? How long have you been using the script? |
![]() ![]() |
Hi bbates, thanks for the quick reply. I'm using Firefox 3.6.12. I just started using your script today, so, no I've yet to have it work for me. I do have Glenn Carr's original script working however. But, I'd rather have the FFtoday stats working from you script. Cheers. |
![]() ![]() |
Huh, I just tried it with 3.6 and it worked fine with me. You didn't have both scripts activated at the same time, did you? I would deactivate the original script and try again if so. If that doesn't work, can you try entering "about:config" in the address bar, and searching on "Defensive"? For each pref with "Yahoo Fantasy Football Defensive Stats" in the preference name, right click and then select reset, and then try again. I will try to play with it some more and see if I can reproduce it. Do you have any other scripts active which run on yahoo pages? |
![]() ![]() |
I had removed all other scripts, so just your script was running. Reset all the "Defensive" variables that your script sets, still not working. It looks like it is building the stat tables as I saved the "Defensive" variables to an HTML file and I can see the data you have set. The HTML for these tables look correct (I opened them in Firefox and I can see all the table data). Not sure on any of the "non visible" variables you may have put into these tables though as I'm not sure what you're storing behind the scenes. I'm a programmer myself, but its been ages since I've worked on GreaseMonkey scripts. So, I've been trying to debug the code myself to see what's going wrong. Not sure why, but every time the code gets to lines where its checking for the team abbrev it is coming back in the negative. At the beginning of the buildToolTip and getRank functions.... if ( !teamStats.stats.hasOwnProperty( teamAbbr ) So, its never building the stat filled Tooltip nor the background color. |
![]() ![]() |
Hrms...guess I'll have to give up on this script. No idea why it's not working. |
![]() ![]() |
Sorry, not around for the weekend. I am going to keep playing with it to see if I can reproduce. Check back in a bit and if I figure anything out I will update again. Again, sorry you are having issues. |
![]() ![]() |
Well, I finally got this script to work with some modifications to one line. The problem had to do with building the stat tables indexed by the team Abbrev. The line of code to strip the Team Abbrev from the URL had extra info due to the URL containing things like 'Season', 'PosID', 'Side' and 'LeagueID'. I think the LeagueID ended up being appended to the Team Abbrev as a result. To fix this I ended up just stripping the Team Abrev as all the text up to the first '&". I had to replace the following line: teamAbbr = Abbr.replace(/&Season.*ID=1/i, ""); with this: teamAbbr = Abbr.replace(/&.*/i, ""); |
![]() ![]() |
Strange. I'll have to take a look at that section. Thanks for getting back with your fix. Still not sure why it was only affecting you. |

