Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Yahoo Fantasy NFL Game Log Link

Provides a link graphic to the player's game log

Provides a direct link graphic to the player's game log.

Original coder of NBA script: wvpv




Jul 24, 2007
Tim Wilson Scriptwright

LooGie, I made the modifications you recommended. I had another try where I placed an icon after the "GL" icon, and did it everywhere that icon appeared, but I think it makes more sense to have it only in Recent Transactions and Transactions, like you suggested.

I've also added in Braxton's code to highlight benched players. So far, it seems to work on Yahoo's new interface. Also made injured baseball players appear in a different color (see below for more about multiple sports).

Lastly, since I am in multiple sports, I made the script work for NFL, NBA, and MLB. I've uploaded the script (with credits to everyone here). The script can be found here

 
Nov 24, 2006
LooGie User

Tim Wilson, I added your code and it works pretty good but it removes the game log link from the salary cap game and I dont like that it changes the link in the "my team" page. Have you considered simply adding the green plus sign with the link to add the player right next to their name in the "recent transaction" box?

This way if you're cruising the other teams, or your own team, you still have the option to goto the profile page (since you can never add a player that is on your own, or someone elses team).

Basically, just like when you do a player search, it has the green plus sign that adds the player...add that to the recent transaction box, and no where else. It won't remove the profile page, and it won't interfere with the salary cap game.

 
Nov 9, 2006
Tim Wilson Scriptwright

I decided to try to do what I said, and I have it working. I added 2 small chunks of code, the first one before the main for() loop:

var nodes = document.evaluate(
"//div[contains(@id,'yspnav')]/ul/li/a",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
var leagueURL = nodes.snapshotItem(0).href;

The second block is put immediately before the createElement() call:

var playerName = thisElement.text.replace(/^.*\. /,'');
thisElement.href = leagueURL+"/playersearch?search="+playerName;
thisElement.setAttribute("target", "")

 
Nov 9, 2006
Tim Wilson Scriptwright

Great script! I've been wanting something like this for a while. Now that I have a game log link, the player profile link is pretty much useless. What I'd like to see is to change the player profile link to take you to the league's Player List page with that player as the searched player. This would be useful when someone drops a player and you want that player. You could click on the player name in the Recent Transactions box, and it would take you to that player so you could add him to your roster.

 
Sep 15, 2006
Braxton Beyer User

I added the following code to highlight my players that were on the bench so you can easier tells who is starting or not:


var table = document.getElementById("statTable0");
tds = table.getElementsByTagName('td')
for (var i = 0; i < tds.length; i++) {
if (tds[i].innerHTML == 'BN') {
thisRowTds = tds[i].parentNode.getElementsByTagName('td')
for (var j = 0; j < thisRowTds.length; j++) {
thisRowTds[j].style.backgroundColor = 'yellow'
}
}
}

You could comment on this script if you were logged in.