<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Change IMDB Links' Text to the Movies' Title | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/24226</link>
    <description>Recent comments on userscript: Change IMDB Links' Text to the Movies' Title</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by Anton Zawaq @ Fri, 25 Jul 2008 10:48:47 -0500</title>
      <description>&lt;a href=&quot;http://www.imdb.com/title/tt0460649/&quot;&gt;&lt;img src=&quot;http://tvreviews.files.wordpress.com/2007/10/cast_limo.jpg&quot; height=&quot;480&quot; alt=&quot;how i met your mother picture&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.imdb.com/title/tt0460649/&quot;&gt;http://www.imdb.com/title/tt0460649/&lt;/a&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:48:47 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26033</guid>
      <author>Anton Zawaq</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by Anton Zawaq @ Wed, 02 Jul 2008 16:49:30 -0500</title>
      <description>&lt;p&gt;It doesn't seem to work, nothing happens. It's like I didn't had the script installed in the first place.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Jul 2008 16:49:30 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26034</guid>
      <author>Anton Zawaq</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by dob @ Tue, 01 Jul 2008 09:22:28 -0500</title>
      <description>&lt;p&gt;Try this version:
&lt;br /&gt;&lt;pre&gt;function $x(p, context) {
	if (!context) context = document;
	var i, arr = [], xpr = document.evaluate(p, context, null, 6, null);
	for (i=0; item=xpr.snapshotItem(i); i++) arr.push(item);
	return arr;
}

var links = $x(&amp;quot;//a[contains(@href, 'imdb.com/title/')]&amp;quot;);
if (links.length) {
	links.forEach(function(link,i) {
	if (!link.hasChildNodes()) {
			if (!GM_getValue(link.href)) {
				GM_xmlhttpRequest({
					method: &amp;quot;get&amp;quot;,
					url: link.href,
					onload: rs(i)
				});
			}
		}
	});
}
function rs(i) {
	return function(e) {
		var title = e.responseText.split(&amp;quot;&amp;lt;title&amp;gt;&amp;quot;)[1].split(&amp;quot;&amp;lt;/title&amp;gt;&amp;quot;)[0];
		links[i].textContent = title;
		GM_setValue(links[i].href, title);
	}
}&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;This is just alpha, I haven't tried it yet.&lt;/p&gt;</description>
      <pubDate>Tue, 01 Jul 2008 09:22:28 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26035</guid>
      <author>dob</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by Anton Zawaq @ Sat, 28 Jun 2008 12:30:34 -0500</title>
      <description>&lt;p&gt;Thanks, but now it seems like something is wrong. The text-links doesn't change to the IMDb-title, and the images-links still changes to the IMDb-titles.&lt;/p&gt;</description>
      <pubDate>Sat, 28 Jun 2008 12:30:34 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26036</guid>
      <author>Anton Zawaq</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by dob @ Thu, 19 Jun 2008 06:37:29 -0500</title>
      <description>&lt;p&gt;I updated the script so image links won't be changed.&lt;/p&gt;</description>
      <pubDate>Thu, 19 Jun 2008 06:37:29 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26037</guid>
      <author>dob</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by Anton Zawaq @ Wed, 18 Jun 2008 19:32:11 -0500</title>
      <description>&lt;p&gt;Thanks for a very useful script, but how do I do so &quot;jpg&quot;- and &quot;png&quot;-files don't get replaced by the title?&lt;/p&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:32:11 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26038</guid>
      <author>Anton Zawaq</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by dob @ Fri, 25 Apr 2008 07:08:12 -0500</title>
      <description>&lt;p&gt;Updated the script a little.
&lt;br /&gt;If the link has been changed before it will be saved, making the script work a lot faster.&lt;/p&gt;

&lt;p&gt;Also, &lt;a href=&quot;http://*.imdb.com&quot;&gt;http://*.imdb.com&lt;/a&gt; will be excluded.
&lt;br /&gt;Thanks for the tip, Hiromacu.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Apr 2008 07:08:12 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26039</guid>
      <author>dob</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by Hiromacu @ Mon, 07 Apr 2008 16:13:45 -0500</title>
      <description>&lt;p&gt;Need to add an exclude: &lt;a href=&quot;http://us.imdb.com/&quot;&gt;http://us.imdb.com/&lt;/a&gt;* !!&lt;/p&gt;</description>
      <pubDate>Mon, 07 Apr 2008 16:13:45 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26040</guid>
      <author>Hiromacu</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews @ Tue, 16 Nov 2004 19:04:56 -0600</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>Tue, 16 Nov 2004 19:04:56 -0600</pubDate>
      <guid isPermaLink="false">userscripts.org:11043:26032</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/topics/11043</link>
    </item>
  </channel>
</rss>
