<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on imdb runtimes in hours and minutes | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/24836</link>
    <description>Recent comments on userscript: imdb runtimes in hours and minutes</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Both the original and the new one, replied by Steinninn @ Mon, 01 Jun 2009 23:51:43 +0000</title>
      <description>&lt;p&gt;How about having the option to show both 90min and 1:30?&lt;/p&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:51:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:28031:128044</guid>
      <author>Steinninn</author>
      <link>http://userscripts.org/topics/28031</link>
    </item>
    <item>
      <title>Include, replied by Chicago_gangster @ Fri, 23 Jan 2009 18:33:08 +0000</title>
      <description>&lt;p&gt;There's no need to include &lt;a href=&quot;http://imdb.com&quot;&gt;http://imdb.com&lt;/a&gt; in any scripts - it doesn't eixst any more (eliminated a year ago; it redirects to www now).&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jan 2009 18:33:08 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20697:91536</guid>
      <author>Chicago_gangster</author>
      <link>http://userscripts.org/topics/20697</link>
    </item>
    <item>
      <title>Include, replied by Mindeye @ Thu, 22 Jan 2009 22:22:20 +0000</title>
      <description>&lt;p&gt;The script doesn't work in IMDB locale versions, like &lt;a href=&quot;http://spanish.imdb.com&quot;&gt;http://spanish.imdb.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How about:
&lt;br /&gt;&lt;pre&gt;
//@include http://imdb.com/title/tt*
//@include http://*.imdb.com/title/tt*
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jan 2009 22:22:20 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20697:91408</guid>
      <author>Mindeye</author>
      <link>http://userscripts.org/topics/20697</link>
    </item>
    <item>
      <title>Archived Comments, replied by znerp @ Mon, 13 Oct 2008 09:07:28 +0000</title>
      <description>&lt;p&gt;@Chicago_gangster: Glad that you like the script, and I can understand why you'd want change it, but I'll leave the script as it is here. I would recommend however that you change the return line to the following instead though;&lt;pre&gt;return (hours + &quot;:&quot; + (minutes &amp;lt; 10 ? &quot;0&quot; : &quot;&quot;) + minutes);&lt;/pre&gt;This way, titles under an hour will show eg. 0:30 instead of just 30, and films with minutes less than 10 over the hour will show as eg. 3:08 instead of 3:8 (this is for the Green Mile, if you wish to test this).&lt;/p&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:07:28 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68116</guid>
      <author>znerp</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
    <item>
      <title>Archived Comments, replied by Chicago_gangster @ Sat, 11 Oct 2008 23:43:24 +0000</title>
      <description>&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;I switched to the 0:00 format (i.e. &quot;2:15&quot; instead of &quot;2 hours, 15 minutes&quot;). If anyone else wants to do it, replace
&lt;br /&gt;&lt;code&gt;  return (hours &gt; 0 ? hours + pl(hours, &quot; hour&quot;) + &quot;, &quot; : &quot;&quot;) + minutes + pl(minutes, &quot; minute&quot;);&lt;/code&gt;
&lt;br /&gt;with:
&lt;br /&gt;(edited out - see the next reply; thanks znerp)
&lt;br /&gt;and delete the &quot;pl&quot; function.&lt;/p&gt;</description>
      <pubDate>Sat, 11 Oct 2008 23:43:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68117</guid>
      <author>Chicago_gangster</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
    <item>
      <title>Archived Comments, replied by Hiromacu @ Wed, 09 Apr 2008 03:44:00 +0000</title>
      <description>&lt;p&gt;Nice! Your modified script is much more better than my! I'm not a programmer, I know just a little bit. :P&lt;/p&gt;</description>
      <pubDate>Wed, 09 Apr 2008 03:44:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68118</guid>
      <author>Hiromacu</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
    <item>
      <title>Archived Comments, replied by Dink @ Tue, 08 Apr 2008 12:07:51 +0000</title>
      <description>&lt;p&gt;Thanks!!....Another great IMDB script!!!&lt;/p&gt;</description>
      <pubDate>Tue, 08 Apr 2008 12:07:51 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68119</guid>
      <author>Dink</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
    <item>
      <title>Archived Comments, replied by Hiromacu @ Tue, 08 Apr 2008 00:12:32 +0000</title>
      <description>&lt;p&gt;And need to add an include: &lt;a href=&quot;http://us.imdb.com/title/tt&quot;&gt;http://us.imdb.com/title/tt&lt;/a&gt;*&lt;/p&gt;</description>
      <pubDate>Tue, 08 Apr 2008 00:12:32 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68120</guid>
      <author>Hiromacu</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
    <item>
      <title>Archived Comments, replied by Hiromacu @ Mon, 07 Apr 2008 04:36:02 +0000</title>
      <description>&lt;p&gt;Hi znerp!&lt;/p&gt;

&lt;p&gt;I changed your script I don't like the abbreviations. So I replaced the 'hrs' and 'mins' abbreviations to the full hour - hours and minute - minutes words.
&lt;br /&gt;But this script is great!&lt;/p&gt;

&lt;p&gt;Modified full script:&lt;/p&gt;

&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name           IMDB runtimes in hours and minutes (changed by Hiromacu)
&lt;br /&gt;// @namespace      znerp
&lt;br /&gt;// @description    Converts the runtime for films on IMDB from minutes into hours and minutes.
&lt;br /&gt;// @include        &lt;a href=&quot;http://www.imdb.com/title/tt&quot;&gt;http://www.imdb.com/title/tt&lt;/a&gt;*
&lt;br /&gt;// ==/UserScript==&lt;/p&gt;

&lt;p&gt;/***********************************************************************
&lt;br /&gt; * I don't like the abbreviations. 
&lt;br /&gt; * So I replaced the 'hrs' and 'mins' abbreviations to the full hour - hours and minute - minutes words.
&lt;br /&gt; * But this script is great!
&lt;br /&gt; *
&lt;br /&gt; * - Hiromacu -
&lt;br /&gt; */&lt;/p&gt;

&lt;p&gt;infos = document.evaluate(&quot;//div[@id='tn15content']/div[@class='info']&quot;,
&lt;br /&gt;                          document,
&lt;br /&gt;                          null,
&lt;br /&gt;                          XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
&lt;br /&gt;                          null)&lt;/p&gt;

&lt;p&gt;for (i = infos.snapshotLength - 1; i &gt;= 0; i--) {
&lt;br /&gt;  if (/Runtime:/.test((time = infos.snapshotItem(i)).innerHTML)) {
&lt;br /&gt;    time.innerHTML = time.innerHTML.replace(/(\d+) min/g, hourize);
&lt;br /&gt;    break;
&lt;br /&gt;  }
&lt;br /&gt;}
&lt;br /&gt;     
&lt;br /&gt;function hourize(str, p1, offset, s) {
&lt;br /&gt;  var htxt;
&lt;br /&gt;  var mtxt;
&lt;br /&gt;  minutes = parseInt(p1)
&lt;br /&gt;  hours = Math.floor(p1 / 60);
&lt;br /&gt;  if (hours &gt; 1) {
&lt;br /&gt;  htxt = &quot;hours&quot;;
&lt;br /&gt;  }
&lt;br /&gt;  else {
&lt;br /&gt;  htxt = &quot;hour&quot;;
&lt;br /&gt;  }
&lt;br /&gt;  minutes = p1 % 60;
&lt;br /&gt;  if (minutes &gt; 1) {
&lt;br /&gt;  mtxt = &quot;minutes&quot;;
&lt;br /&gt;  }
&lt;br /&gt;  else {
&lt;br /&gt;  mtxt = &quot;minute&quot;;
&lt;br /&gt;  }
&lt;br /&gt;  return (hours &gt; 0 ? hours + &quot; &quot; + htxt+ &quot;, &quot; : &quot;&quot;) + minutes + &quot; &quot; + mtxt;
&lt;br /&gt;}&lt;/p&gt;</description>
      <pubDate>Mon, 07 Apr 2008 04:36:02 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68121</guid>
      <author>Hiromacu</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
    <item>
      <title>Archived Comments, replied by Neewb @ Sun, 06 Apr 2008 19:39:52 +0000</title>
      <description>&lt;p&gt;Niccccce !&lt;/p&gt;</description>
      <pubDate>Sun, 06 Apr 2008 19:39:52 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68122</guid>
      <author>Neewb</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews @ Wed, 17 Nov 2004 01:05:35 +0000</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:35 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:16033:68114</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/topics/16033</link>
    </item>
  </channel>
</rss>
