<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Yahoo Fantasy Baseball Matchups 2008 | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/9143</link>
    <description>Recent comments on userscript: Yahoo Fantasy Baseball Matchups 2008</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>not working, replied by Kyle Mechler</title>
      <description>&lt;p&gt;The screenshot isn't updated to show how to use it with the 2009 version, I don't think.  You need to click on &quot;My Team&quot;, then &quot;Matchup Ratings&quot;, then there is a small &quot;Show Details&quot; link at the top of the column.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://dl-client.getdropbox.com/u/40409/yahoomatchupsscript.png&quot;&gt;http://dl-client.getdropbox.com/u/40409/yahooma...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 28 Apr 2009 13:42:52 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24659:115623</guid>
      <author>Kyle Mechler</author>
      <link>http://userscripts.org/posts/115623</link>
    </item>
    <item>
      <title>not working, replied by Gamelist</title>
      <description>&lt;p&gt;Not working either&lt;/p&gt;</description>
      <pubDate>Sun, 19 Apr 2009 04:47:26 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24659:112320</guid>
      <author>Gamelist</author>
      <link>http://userscripts.org/posts/112320</link>
    </item>
    <item>
      <title>not working, replied by Dubary Brea</title>
      <description>&lt;p&gt;I have the script installed and this season it is not working!!!help!&lt;/p&gt;</description>
      <pubDate>Sat, 11 Apr 2009 07:33:13 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24659:110088</guid>
      <author>Dubary Brea</author>
      <link>http://userscripts.org/posts/110088</link>
    </item>
    <item>
      <title>Archived Comments, replied by aaron1325714</title>
      <description>&lt;p&gt;hey glenn i know my question has nothing to do with this script but i couldnt find your email anywhere&lt;/p&gt;

&lt;p&gt;so i was wondering if you could create this script except for baseball it is a bench all players without a game script&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/6716&quot;&gt;http://userscripts.org/scripts/show/6716&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;that is the script link&lt;/p&gt;

&lt;p&gt;and here is the actual script&lt;/p&gt;

&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name        Yahoo Fantasy NBA Bench All
&lt;br /&gt;// @namespace   &lt;a href=&quot;http://mattandchristy.net/benchall&quot;&gt;http://mattandchristy.net/benchall&lt;/a&gt;
&lt;br /&gt;// @description Provides a button to bench all players without a game
&lt;br /&gt;// @include     &lt;a href=&quot;http://basketball.fantasysports.yahoo.com/nba/*/*?date&quot;&gt;http://basketball.fantasysports.yahoo.com/nba/*...&lt;/a&gt;=*
&lt;br /&gt;// @include     &lt;a href=&quot;http://basketball.fantasysports.yahoo.com/nba/*/*/editroster&quot;&gt;http://basketball.fantasysports.yahoo.com/nba/*...&lt;/a&gt;
&lt;br /&gt;// ==/UserScript==
&lt;br /&gt;//
&lt;br /&gt;// Change log:
&lt;br /&gt;//  2006-12-10  Initial version of script; used Yahoo Fantasy NBA Game Log Link
&lt;br /&gt;//              as a base to start developing&lt;/p&gt;

&lt;p&gt;var doBench = function(event) {&lt;/p&gt;

&lt;p&gt;  var allElements;
&lt;br /&gt;  var thisElement;
&lt;br /&gt;  var playerLink = &quot;http://sports.yahoo.com/nba/players/&quot;
&lt;br /&gt;  var gameLogLink;
&lt;br /&gt;  
&lt;br /&gt;  
&lt;br /&gt;  allElements = document.evaluate(
&lt;br /&gt;    &quot;//*[contains(@class, 'player')]/..&quot;,
&lt;br /&gt;    document,
&lt;br /&gt;    null,
&lt;br /&gt;    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
&lt;br /&gt;    null);
&lt;br /&gt;  
&lt;br /&gt;  // burn the first two rows; they are headers, not players
&lt;br /&gt;  for (var i = 2; i &amp;lt; allElements.snapshotLength; i++) {&lt;/p&gt;

&lt;p&gt;    thisElement = allElements.snapshotItem(i);&lt;/p&gt;

&lt;p&gt;    tds = thisElement.getElementsByTagName('td');
&lt;br /&gt;    nameNode = tds[1];
&lt;br /&gt;    if(nameNode) {
&lt;br /&gt;          // td       div        a          textnode   value
&lt;br /&gt;      name = nameNode.firstChild.firstChild.firstChild.nodeValue;
&lt;br /&gt;      
&lt;br /&gt;      // get the opponent TD's innerHTML; text node won't work because
&lt;br /&gt;      // the ? for 'no opponent' gets translated to a character =/
&lt;br /&gt;      opp  = tds[3].innerHTML;
&lt;br /&gt;      
&lt;br /&gt;      if(opp == '?') {
&lt;br /&gt;        
&lt;br /&gt;        newPosSelectNode = tds[2].firstChild;
&lt;br /&gt;        // select the 'BN' node for these guys (last option)
&lt;br /&gt;        newPosSelectNode.selectedIndex = newPosSelectNode.length-1;
&lt;br /&gt;        
&lt;br /&gt;        GM_log(&quot;Benching &quot; + name);
&lt;br /&gt;      }
&lt;br /&gt;    }  
&lt;br /&gt;  }
&lt;br /&gt;  
&lt;br /&gt;  // stop event propagation, if this was a click
&lt;br /&gt;  if(event) {
&lt;br /&gt;    event.stopPropagation();
&lt;br /&gt;    event.preventDefault();
&lt;br /&gt;  }
&lt;br /&gt;}&lt;/p&gt;

&lt;p&gt;/* 	    gameLogLink = document.createElement('a'); */
&lt;br /&gt;/*       gameLogLink.setAttribute(&quot;href&quot;,thisElement.href + &quot;/gamelog&quot;) */
&lt;br /&gt;/*       //gameLogLink.setAttribute(&quot;class&quot;,&quot;cellindent&quot;) */
&lt;br /&gt;/*       gameLogLink.setAttribute(&quot;target&quot;,&quot;_blank&quot;) */
&lt;br /&gt;/*       gameLogLink.setAttribute(&quot;title&quot;,&quot;game log link&quot;) */
&lt;br /&gt;/*       gameLogLink.innerHTML = &quot;&lt;img src=&quot;\\&quot;&gt;&quot;  */
&lt;br /&gt;/*       thisElement.parentNode.insertBefore(gameLogLink, thisElement.nextSibling.nextSibling); */&lt;/p&gt;

&lt;p&gt;var BENCHBUTTON_ID   = &quot;bencherButton&quot;;
&lt;br /&gt;var BENCHBUTTON_TEXT = &quot;[Bench players with no game]&quot;;&lt;/p&gt;

&lt;p&gt;// create the bench button
&lt;br /&gt;var bencher = document.createElement(&quot;A&quot;);
&lt;br /&gt;bencher.addEventListener(&quot;click&quot;, doBench, true);
&lt;br /&gt;bencher.href = &quot;#&quot;;
&lt;br /&gt;bencher.innerHTML = BENCHBUTTON_TEXT;
&lt;br /&gt;bencher.className = 'button';
&lt;br /&gt;/* bencher.style.backgroundColor = &quot;#D8D9D5&quot;; */
&lt;br /&gt;/* bencher.style.borderTopColor = &quot;#A8A8A8&quot;; */
&lt;br /&gt;/* bencher.style.borderBottomColor = &quot;#A8A8A8&quot;; */
&lt;br /&gt;/* bencher.style.borderLeftColor = &quot;#A8A8A8&quot;; */
&lt;br /&gt;/* bencher.style.borderRightColor = &quot;#A8A8A8&quot;; */
&lt;br /&gt;/* bencher.style.borderTopStyle = &quot;outset&quot;; */
&lt;br /&gt;/* bencher.style.borderBottomStyle = &quot;outset&quot;; */
&lt;br /&gt;/* bencher.style.borderLeftStyle = &quot;outset&quot;; */
&lt;br /&gt;/* bencher.style.borderRightStyle = &quot;outset&quot;; */
&lt;br /&gt;/* bencher.style.borderTopWidth = &quot;1px&quot;; */
&lt;br /&gt;/* bencher.style.borderBottomWidth = &quot;1px&quot;; */
&lt;br /&gt;/* bencher.style.borderLeftWidth = &quot;1px&quot;; */
&lt;br /&gt;/* bencher.style.borderRightWidth = &quot;1px&quot;; */
&lt;br /&gt;bencher.style.paddingTop = &quot;2px&quot;;
&lt;br /&gt;bencher.style.paddingBottom = &quot;5px&quot;;
&lt;br /&gt;bencher.style.paddingLeft = &quot;5px&quot;;
&lt;br /&gt;bencher.style.paddingRight = &quot;5px&quot;;
&lt;br /&gt;bencher.style.color = &quot;#FFFFFF&quot;;
&lt;br /&gt;bencher.id = BENCHBUTTON_ID;&lt;/p&gt;

&lt;p&gt;// attach the bench button right before the &quot;submit changes&quot; button
&lt;br /&gt;// at the bottom of the screen
&lt;br /&gt;var buttonBar = document.getElementById('buttonbar');
&lt;br /&gt;var inputs = buttonBar.getElementsByTagName('input');
&lt;br /&gt;var submitButton = inputs[inputs.length-1]
&lt;br /&gt;buttonBar.insertBefore(bencher, submitButton);&lt;/p&gt;

&lt;p&gt;i tried to mess around with it a little bit but got no luck&lt;/p&gt;

&lt;p&gt;please respond soon&lt;/p&gt;

&lt;p&gt;i will post this on a couple other pages to ensure that you get the message&lt;/p&gt;

&lt;p&gt;Aaron S&lt;/p&gt;</description>
      <pubDate>Sat, 09 Aug 2008 07:46:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77661</guid>
      <author>aaron1325714</author>
      <link>http://userscripts.org/posts/77661</link>
    </item>
    <item>
      <title>Archived Comments, replied by aaron1325714</title>
      <description>&lt;p&gt;yea that would be it has it always been that way
&lt;br /&gt;i probably haven't noticed it before because since it is summer i am staying up late at night so all my roster changes are being made right when the day changes when there is no preview yet&lt;/p&gt;

&lt;p&gt;yeah that would be it&lt;/p&gt;

&lt;p&gt;thank you&lt;/p&gt;

&lt;p&gt;you are the master dude i love you&lt;/p&gt;</description>
      <pubDate>Tue, 05 Aug 2008 07:31:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77662</guid>
      <author>aaron1325714</author>
      <link>http://userscripts.org/posts/77662</link>
    </item>
    <item>
      <title>Archived Comments, replied by Glenn Carr</title>
      <description>&lt;p&gt;It's working for me and others.  One thing to note is that it will only work for the current day -- there has to be a game preview link next to each player under the 'Status' column.  Could that be the issue, trying to view details for a future date?&lt;/p&gt;</description>
      <pubDate>Mon, 04 Aug 2008 19:29:04 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77663</guid>
      <author>Glenn Carr</author>
      <link>http://userscripts.org/posts/77663</link>
    </item>
    <item>
      <title>Archived Comments, replied by aaron1325714</title>
      <description>&lt;p&gt;if you don't &quot;fix&quot; it&lt;/p&gt;

&lt;p&gt;could you please give me a link of the script that shows the details&lt;/p&gt;

&lt;p&gt;i do not mind if it is an older version&lt;/p&gt;</description>
      <pubDate>Sat, 02 Aug 2008 16:24:47 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77664</guid>
      <author>aaron1325714</author>
      <link>http://userscripts.org/posts/77664</link>
    </item>
    <item>
      <title>Archived Comments, replied by aaron1325714</title>
      <description>&lt;p&gt;ummm the details are still not working&lt;/p&gt;

&lt;p&gt;i click on show details and nothing different shows&lt;/p&gt;</description>
      <pubDate>Sat, 02 Aug 2008 07:15:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77665</guid>
      <author>aaron1325714</author>
      <link>http://userscripts.org/posts/77665</link>
    </item>
    <item>
      <title>Archived Comments, replied by Glenn Carr</title>
      <description>&lt;p&gt;Sure, look in the first screenshot.&lt;/p&gt;</description>
      <pubDate>Fri, 01 Aug 2008 20:19:12 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77666</guid>
      <author>Glenn Carr</author>
      <link>http://userscripts.org/posts/77666</link>
    </item>
    <item>
      <title>Archived Comments, replied by aaron1325714</title>
      <description>&lt;p&gt;&quot;21-Jul-2008 - Instead of automatically displaying the match up status, added 'Show Details' link&quot;&lt;/p&gt;

&lt;p&gt;where is this link could you post an image of this&lt;/p&gt;

&lt;p&gt;because i don't see it on the image here or on my page&lt;/p&gt;

&lt;p&gt;and i would really like to see the rest of the match up details&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jul 2008 22:34:08 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77667</guid>
      <author>aaron1325714</author>
      <link>http://userscripts.org/posts/77667</link>
    </item>
    <item>
      <title>Archived Comments, replied by HN</title>
      <description>&lt;p&gt;yes, you are the KING!  Thank you for fixing this.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jun 2008 11:15:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77668</guid>
      <author>HN</author>
      <link>http://userscripts.org/posts/77668</link>
    </item>
    <item>
      <title>Archived Comments, replied by wrveres</title>
      <description>&lt;p&gt;here you go glenn&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://rotodatabase.com/node/712&quot;&gt;http://rotodatabase.com/node/712&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 21 Apr 2008 09:28:59 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77669</guid>
      <author>wrveres</author>
      <link>http://userscripts.org/posts/77669</link>
    </item>
    <item>
      <title>Archived Comments, replied by LenR</title>
      <description>&lt;p&gt;Great, but only works for pitchers now, showing undefined for all batters :(&lt;/p&gt;</description>
      <pubDate>Fri, 18 Apr 2008 18:02:56 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77670</guid>
      <author>LenR</author>
      <link>http://userscripts.org/posts/77670</link>
    </item>
    <item>
      <title>Archived Comments, replied by Tim Harding</title>
      <description>&lt;p&gt;This is my absolute favorite script, please fix it so stop starting the wrong guys! ;)&lt;/p&gt;</description>
      <pubDate>Tue, 08 Apr 2008 17:53:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77671</guid>
      <author>Tim Harding</author>
      <link>http://userscripts.org/posts/77671</link>
    </item>
    <item>
      <title>Archived Comments, replied by HN</title>
      <description>&lt;p&gt;Yeah...same problem for me.  It looks great though...especially once hitters are fixed.  Great job with all your stuff!&lt;/p&gt;</description>
      <pubDate>Fri, 04 Apr 2008 18:51:39 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77672</guid>
      <author>HN</author>
      <link>http://userscripts.org/posts/77672</link>
    </item>
    <item>
      <title>Archived Comments, replied by Edwin Ortega</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I just installed the script, and is only showing the information on the Pitchers, the hitters is not showing anything...&lt;/p&gt;</description>
      <pubDate>Sun, 30 Mar 2008 21:49:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77673</guid>
      <author>Edwin Ortega</author>
      <link>http://userscripts.org/posts/77673</link>
    </item>
    <item>
      <title>Archived Comments, replied by irishwolf6789</title>
      <description>&lt;p&gt;I see for batters they have career v LHP/RHP but maybe you could have that pitcher's career numbers v. Right and left-handed &amp;lt;u&gt;batters&amp;lt;/u&gt;&lt;/p&gt;

&lt;p&gt;I know that would go into my decision making.&lt;/p&gt;</description>
      <pubDate>Tue, 26 Jun 2007 19:46:11 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77674</guid>
      <author>irishwolf6789</author>
      <link>http://userscripts.org/posts/77674</link>
    </item>
    <item>
      <title>Archived Comments, replied by Dan Russell</title>
      <description>&lt;p&gt;I thought I found a bug in your script, but it appears to be Yahoo's fault.&lt;/p&gt;

&lt;p&gt;I have Luis Gonzalez on my team and I saw in his matchup with Micah Owings he had an OPS of .000, with 0 hits and 0 AB.  I found it odd that a history would show up at all, so I went to the actual Yahoo batter vs. pitcher page for Micah Owings here: &lt;a href=&quot;http://sports.yahoo.com/mlb/players/7936/batvspit&quot;&gt;http://sports.yahoo.com/mlb/players/7936/batvspit&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;You can see that LuGo walked twice against him for an OBP of 1.000.  Since OPS is simply OBP plus SLG, his OPS should be 1.000, but it's not!&lt;/p&gt;</description>
      <pubDate>Mon, 25 Jun 2007 12:59:25 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77675</guid>
      <author>Dan Russell</author>
      <link>http://userscripts.org/posts/77675</link>
    </item>
    <item>
      <title>Archived Comments, replied by Glenn Carr</title>
      <description>&lt;p&gt;No problem.  Glad you found the button ;)&lt;/p&gt;</description>
      <pubDate>Wed, 20 Jun 2007 22:33:49 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77676</guid>
      <author>Glenn Carr</author>
      <link>http://userscripts.org/posts/77676</link>
    </item>
    <item>
      <title>Archived Comments, replied by enginedown</title>
      <description>&lt;p&gt;lol there's a button for it, didn't notice that :)&lt;/p&gt;

&lt;p&gt;awesomely done. thanks&lt;/p&gt;</description>
      <pubDate>Wed, 20 Jun 2007 00:14:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77677</guid>
      <author>enginedown</author>
      <link>http://userscripts.org/posts/77677</link>
    </item>
    <item>
      <title>Archived Comments, replied by enginedown</title>
      <description>&lt;p&gt;anybody else having trouble with this one? the status bar has widened to fit the matchup text in there, but there's no text.&lt;/p&gt;</description>
      <pubDate>Tue, 19 Jun 2007 04:40:51 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77678</guid>
      <author>enginedown</author>
      <link>http://userscripts.org/posts/77678</link>
    </item>
    <item>
      <title>Archived Comments, replied by lbjay</title>
      <description>&lt;p&gt;Dude! Thanks for stealing my idea. :) This is awesome.&lt;/p&gt;</description>
      <pubDate>Fri, 25 May 2007 15:52:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77679</guid>
      <author>lbjay</author>
      <link>http://userscripts.org/posts/77679</link>
    </item>
    <item>
      <title>Archived Comments, replied by JakeS</title>
      <description>&lt;p&gt;Very cool script.&lt;/p&gt;</description>
      <pubDate>Tue, 22 May 2007 18:43:46 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77680</guid>
      <author>JakeS</author>
      <link>http://userscripts.org/posts/77680</link>
    </item>
    <item>
      <title>Archived Comments, replied by Dan Russell</title>
      <description>&lt;p&gt;This is one of the coolest GM scripts I've ever seen.  Nice job!&lt;/p&gt;</description>
      <pubDate>Tue, 22 May 2007 17:24:23 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77681</guid>
      <author>Dan Russell</author>
      <link>http://userscripts.org/posts/77681</link>
    </item>
    <item>
      <title>Archived Comments, replied by Glenn Carr</title>
      <description>&lt;p&gt;Yeah, that's not a bad idea.  For now, the 'Hide Matchups' link is the refresh button ;)&lt;/p&gt;

&lt;p&gt;re: the &quot;...&quot;, nothing fancy, I just ended making a couple of http requests for the hitter matchups, and on the last one I replace the same HTML with an extra dot.&lt;/p&gt;</description>
      <pubDate>Wed, 09 May 2007 22:00:14 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17683:77682</guid>
      <author>Glenn Carr</author>
      <link>http://userscripts.org/posts/77682</link>
    </item>
  </channel>
</rss>
