Script Summary: Indicates players that are 'owned' outside of Yahoo's active roster
If you're feeling especially appreciative of the time involved to do these scripts, feel free to buy my lunch today.
Updates:
11-Jul-2008 - Added farm team to bottom of each team page
11-Jul-2008 - Changed lock image; lock image links to roster data; added roster data link to farm roster
13-Jul-2008 - Added 'Farm' link to subnavigation menu for roster data spreadsheet
16-Jul-2008 - If player name on the roster doesn't match the player name in the spreadsheet, display the name in red and add a note to the tooltip
16-Jul-2008 - Fixed bug causing some interference with player drag-n-drop
30-Sep-2008 - Added search next to farm player list at the bottom of the page
16-Mar-2008 - Fix URL to not remove sheet ID
20-Mar-2008 - Fixed bug causing farm roster to not display on team pages other than current owner's team
28-Apr-2009 - Modify to show current owner's players in a different color
7-May-2009 - Highlight player's names that match those on the spreadsheet that don't have a Yahoo player ID assigned yet
12-Feb-2010 - Display career innings pitched or at bats for farm players, and highlight players no longer rookie eligible (Thanks to KCollins1304 for the suggestion!)
14-Feb-2010 - Tweaked last mod a bit
17-Feb-2010 - Modified to allow changing rookie eligibility requirements using games played
6-Aug-2010 - Modified to only display career stats when clicking header link
23-Jul-2011 - FF5 issue fixed - changed variable 'class' to 'cls' (thanks schnitzl...@gmail.com)
16-Feb-2012 - Call GM_xmlhttpRequest from setTimeout to prevent it from being blocked.
22-Apr-2012 - Fixed problem in regex due to Yahoo changes causing farm roster not to show up at the bottom of the page
23-Apr-2012 - Really fixed the problem in regex due to Yahoo changes causing farm roster not to show up at the bottom of the page
25-Apr-2012 - Changed spreadsheet URL in links to editable document link
14-May-2012 - Removed setTimeout experiment which started causing a bug due to FF changes in global variable scoping
Usage:
1. Create a Google spreadsheet in this format:
Column 1: Column 2: Column 3: Column 4:
------------------------------------------------------------------------------
Yahoo League ID: [yahoo league id]
Team: [team name 1] [yahoo team number]
[player 1] [yahoo player id] [player note]
[player n] [yahoo player id] [player note]
Team: [team name 1] [yahoo team number]
[player 1] [yahoo player id] [player note]
[player n] [yahoo player id] [player note]
------------------------------------------------------------------------------
...then publish it. Here's an example: http://spreadsheets.google.com/pub?key=pp2eo2em...
2. Click 'More publishing options' to get the 'TXT' version of the URL.
It will be something like this:
http://spreadsheets.google.com/pub?key=pp2eo2em...
UPDATE: Here's a demo
3. Edit the spreadsheet so that it has the correct rosters and Yahoo player numbers.
Make sure the league identifier is correct in the first line.
4. Install this script and then change the included pages for this script to match your league in this format:
http://baseball.fantasysports.yahoo.com/bn/nnnn*
5. When you refresh the page the first time, you'll be prompted for the URL of the TXT version of the document.
Paste it in the dialog, and you should be good to go.
Example of how player links are changed that are 'owned' by another player:

Example of how player links are changed that are 'owned' by you:

Example of farm roster displayed on team page...




