Archive for the ‘Greasemonkey Scripts’ Category

Using Multiple Greasemonkey Scripts

18 Comments
March 13th, 2011 by
Categories: Greasemonkey Scripts, Site News

As you may know, it is possible to display Price Guide dollar values inside your league homepage using a Firefox add-on called Greasemonkey. A Greasemonkey script with values customized for your league is available at the top of each Price Guide results page.

I’ve talked about this feature in the past, and a reader suggested I add it as a category to the blog. I thought that was a great idea, so now you can click Greasemonkey Scripts to the left to see past posts about this, including screenshots of the scripts in action. I encourage you to check out those posts if you haven’t tried out this feature before and want to find out more.

The same reader asked how to have two (or more) scripts to handle multiple leagues with differing configurations — for example having different scripts for two different Yahoo leagues. I actually don’t think I’ve made a post about that, although I may have explained it in emails and comments. In Firefox, just go to Tools – Greasemonkey – Manage User Scripts and click Edit for the script you want to change.

In whatever text editor (e.g. Notepad) that pops up, you should see a line near the top like this:

@include        http://baseball.fantasysports.yahoo.com/*

Change that line to include your league ID:

@include        http://baseball.fantasysports.yahoo.com/b1/000000/*

…where 000000 is your numeric league id. (It should be the same as the URL to your league homepage.) Make sure you keep the “*” at the end. Save the file and close, and the script should only apply to that particular league. Repeat those steps for the scripts for your other Yahoo leagues as well.

The process is similar for CBSSports and ESPN. On CBSSports the include line will be something like:

@include        *leaguename.baseball.cbssports.com/*

…where leaguename is the name of your league. (Once again, it should match the URL of your league homepage.)

ESPN will be this:

@include        http://games.espn.go.com/flb/*leagueId=00000*

I’ll be happy to explain more in the comments if anyone has questions about this.

ESPN Greasemonkey Script Unavailable

1 Comment
February 17th, 2010 by
Categories: Greasemonkey Scripts, Site News

UPDATE 02/18: The ESPN script is now working. I’m still adding IDs for some minor players, but anyone who is fantasy-relevant should show up.


I just got a heads-up that the Greasemonkey script for ESPN is currently out-of-order.

ESPN switched around all of their player IDs, which broke the script that inserts dollar values onto their league pages.

I’ll need to update the IDs for a thousand or so players to get it back up and running. So if anyone happens to have already compiled a bunch of ESPN player IDs, I’d love to know about them.

I’ll let you know when everything is fixed.

Adding Dollar Values to Your CBS League

11 Comments
February 1st, 2010 by
Categories: Greasemonkey Scripts, Price Guide

Did you know that you can add the Price Guide‘s dollar values to your fantasy league’s website (Yahoo, ESPN, CBS Sportsline, or Allstar Stats)? Here’s what it looks like on a public CBS league:

CBS Free Agent Rankings

These are dollar values that are customized to whatever settings your league is using and that only show up on your computer. During the preseason, you can use the projected stats on this site or your own customized projections. Once the season starts, you might instead show each player’s actual, year-to-date dollar value.

The dollar values are easy to add. Since CBS already has their leagues up, here is all you need to do to add them:

1. Download Mozilla Firefox and Greasemonkey. Firefox is an internet browser that works as an alternative to Internet Explorer. Greasemonkey is an add-on to Firefox that allows you to customize how pages appear.

2. Enter your CBS Sports league settings into the Price Guide. For a public league, you should only need to change the number of teams from 12 to 10. If you use “Standard Roto” (i.e. 4×4) rules, you will also want to remove batter runs and pitcher strikeouts. (If you have a Premium league at CBS, you may need to change more settings to match your league.)

3. Click the link on the results. At the top of the Price Guide results, you should see a link to add dollar values to a CBS Sportsline league. Click the link and Greasemonkey should recognize and install the script.

Link for Installing CBS Greasemonkey Script

4. Check it out on your league homepage. Go to your league, and you should notice the dollar values showing up next to each player’s name.

While CBS provides player rankings that give you an idea of a player’s value, remember that these are not customized for your specific league. Also, it might be valuable to know places where the Price Guide’s projections diverge from CBS’s. Compare CBS’s 2B rankings to what the Price Guide thinks:

CBS 2B Rankings

While much of those rankings line up, the Price Guide’s projections put much less weight in Aaron Hill‘s and Ben Zobrist‘s remarkable 2009 improvements, expecting them to settle somewhere in between 2008 and 2009.

CBS 3B Rankings

At 3B it is clear that the Price Guide continues to put less emphasis on one year’s stats: The projections don’t discount David Wright‘s mysteriously poor 2009 as much as CBS does, placing him at $28 and the 2nd best 3B.

While you certainly don’t have to agree with one or the other, I think those kinds of discrepancies can be valuable to realize. Also remember that these values will update as the Price Guide updates this spring. During the year, they will update daily based on the latest year-to-date stats.

ESPN League Dollar Values

10 Comments
April 27th, 2009 by
Categories: Greasemonkey Scripts, Price Guide, Site News

You may have noticed the latest Greasemonkey script link on the Price Guide — a script for ESPN leagues.

Here’s what the Player Rater looks like in the FantasyPros911 Experts League, a standard AL-only league:

ESPN Player Rater with Dollar Values

With both the top fantasy hitter and the most valuable fantasy pitcher on his team, it’s not surprising that Perry Van Hook has a solid grip on 1st place.

You can get dollar values customized for you own league with the Price Guide. From there, you should see links to add the prices to your league homepage (Yahoo, ESPN, CBS, or Allstar Stats).

Dollar Values on Your CBS League Homepage

17 Comments
April 22nd, 2009 by
Categories: Greasemonkey Scripts, Price Guide, Site News

As promised, I’ve got a new Greasemonkey script that will display customized, up-to-date dollar values on your CBS fantasy league homepage. The effect is very similar to the Yahoo screenshots I posted earlier.

Now, whenever you generate dollar values with the Price Guide, you should see links to add the dollar values to your league:

Greasemonkey links

The links are Greasemonkey scripts that are generated with your specific league parameters, so there’s no longer any need to edit the scripts yourself. If you have Greasemonkey installed, all you have to do is click the link and the prices should start showing up.

This is all still a work in progress, so there could still be a few quirks. Please let me know if you have any problems with it.

Assorted Updates

No Comments
April 21st, 2009 by
Categories: Greasemonkey Scripts, Price Guide, Site News

A quick update: You can now add dollar values from the composite projections to your league homepage.

If your league is hosted by Allstar Stats, there is now a Greasemonkey script for you — available here.

I’ve matched all of the player IDs from CBS with the IDs I have on the stats and projections, so there should be a CBS script available pretty soon. ESPN is next after that.

Price Guide Dollar Values on Your League Homepage

12 Comments
April 17th, 2009 by
Categories: Greasemonkey Scripts, Price Guide, Site News

Having unveiled in-season fantasy dollar values, I’m ready to reveal my latest project — Price Guide values on your league homepage.

The screenshots below are Price Guide values inserted into one of Yahoo’s expert fantasy leagues – the Friends and Family League. The values are customized for the settings of this exact league (14 teams, 1 catcher, 2 Util).

Here’s the pitching staff for Brad Evans, currently in last place:

Brad Evans and a Last Place Team

Some free agents:

Free Agents with Dollar Values

Transactions:

Recent Transactions

It’s all done through the magic of the Firefox plugin Greasemonkey, and it is completely customizable for your specific league settings.

If you have Greasemonkey installed and are at least mildly comfortable editing scripts, you can try out the Yahoo league version for yourself. All you should have to do is replace the Price Guide URL in the script with the URL for your league.

Suggestions are welcome. Once everything is polished up I’ll see about putting it out on UserScripts.org.