<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on NHL Shift Charts | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/13503</link>
    <description>Recent comments on userscript: NHL Shift Charts</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>New-and-improved version that works on the new NHL.com scores page format, replied by nameht</title>
      <description>&lt;p&gt;thanks for that, I just updated the script to use this one, have not had the chance to update it my self&lt;/p&gt;</description>
      <pubDate>Fri, 26 Dec 2008 20:22:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18427:86327</guid>
      <author>nameht</author>
      <link>http://userscripts.org/posts/86327</link>
    </item>
    <item>
      <title>New-and-improved version that works on the new NHL.com scores page format, replied by yuzisee</title>
      <description>&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name           NHL Shift Charts
&lt;br /&gt;// @namespace      TOI
&lt;br /&gt;// @description    for using timeonice.com shift charts and H2H on NHL.com scores page
&lt;br /&gt;// @include        &lt;a href=&quot;http://*.nhl.com/&quot;&gt;http://*.nhl.com/&lt;/a&gt;*
&lt;br /&gt;// ==/UserScript==&lt;/p&gt;

&lt;p&gt;var teamLinks = document.evaluate(&quot;//span[contains(., 'GAME SHEETS:')]&quot;, document, null, 7, null);
&lt;br /&gt;for(var i=0; i &amp;lt; teamLinks.snapshotLength; i++){
&lt;br /&gt;	var foundDiv = teamLinks.snapshotItem(i).parentNode;
&lt;br /&gt;	var linkDiv = foundDiv.getElementsByTagName(&quot;div&quot;)[0];
&lt;br /&gt;	var gameId = foundDiv.id;
&lt;br /&gt;	var yearId = gameId.substr(gameId.length-10,4);
&lt;br /&gt;	gameId = gameId.substr(gameId.length-5,5);
&lt;br /&gt;	
&lt;br /&gt;	
&lt;br /&gt;	
&lt;br /&gt;	var toiLinks = document.evaluate(&quot;child::text()&quot;, linkDiv, null, 7, null);&lt;/p&gt;

&lt;p&gt;	
&lt;br /&gt;	var targetNodes = Array();
&lt;br /&gt;	for(var n=0; n &amp;lt; toiLinks.snapshotLength; n++){
&lt;br /&gt;		var toiNode = toiLinks.snapshotItem(n);
&lt;br /&gt;		if( toiNode.textContent.match(&quot;TOI - &quot;) ) {
&lt;br /&gt;			targetNodes.push(toiNode);
&lt;br /&gt;		}&lt;/p&gt;

&lt;p&gt;	}
&lt;br /&gt;	
&lt;br /&gt;	var toiLink = document.createElement('a');
&lt;br /&gt;	toiLink.href = &quot;http://www.timeonice.com/default.html?GameNumber=&quot; + gameId + &quot;&amp;amp;submit=Go&quot;;
&lt;br /&gt;	toiLink.appendChild(document.createTextNode(&quot;TOI&quot;));&lt;/p&gt;

&lt;p&gt;	targetNodes[0].parentNode.insertBefore(toiLink, targetNodes[0]);
&lt;br /&gt;	targetNodes[0].textContent = ' | ';&lt;/p&gt;

&lt;p&gt;	var h2hLink = document.createElement('a');
&lt;br /&gt;	h2hLink.appendChild(document.createTextNode(&quot;H2H&quot;));
&lt;br /&gt;	switch(yearId)
&lt;br /&gt;	{
&lt;br /&gt;	case '2005':
&lt;br /&gt;	  h2hLink.href = &quot;http://www.timeonice.com/H2H0506.html?GameNumber=&quot; + gameId + &quot;&amp;amp;submit=Go&quot;;
&lt;br /&gt;	  break;    
&lt;br /&gt;	case '2006':
&lt;br /&gt;	  h2hLink.href = &quot;http://www.timeonice.com/H2H0607.html?GameNumber=&quot; + gameId + &quot;&amp;amp;submit=Go&quot;;
&lt;br /&gt;	  break;
&lt;br /&gt;	case '2007':
&lt;br /&gt;	  h2hLink.href = &quot;http://www.timeonice.com/H2H0708.html?GameNumber=&quot; + gameId + &quot;&amp;amp;submit=Go&quot;;
&lt;br /&gt;	  break;
&lt;br /&gt;	default:
&lt;br /&gt;	  h2hLink.href = &quot;http://www.timeonice.com/H2H0809.html?GameNumber=&quot; + gameId + &quot;&amp;amp;submit=Go&quot;;
&lt;br /&gt;	}
&lt;br /&gt;	
&lt;br /&gt;	targetNodes[1].parentNode.insertBefore(h2hLink, targetNodes[1]);
&lt;br /&gt;	targetNodes[1].textContent = ' | ';
&lt;br /&gt;	
&lt;br /&gt;	
&lt;br /&gt;}&lt;/p&gt;</description>
      <pubDate>Sun, 30 Nov 2008 03:31:59 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:18427:80699</guid>
      <author>yuzisee</author>
      <link>http://userscripts.org/posts/80699</link>
    </item>
    <item>
      <title>Archived Comments, replied by nameht</title>
      <description>&lt;p&gt;added H2H for 06/07 season&lt;/p&gt;</description>
      <pubDate>Fri, 02 Nov 2007 04:41:25 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17801:78260</guid>
      <author>nameht</author>
      <link>http://userscripts.org/posts/78260</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Wed, 17 Nov 2004 01:05:53 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17801:78259</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/78259</link>
    </item>
  </channel>
</rss>
