<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on IMDb enlarge actor pictures on hover | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/4169</link>
    <description>Recent comments on userscript: IMDb enlarge actor pictures on hover</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>@include, replied by Chicago_gangster</title>
      <description>&lt;p&gt;To prevent the script from running (unnecessarily) on all subpages of titles, I'd suggest to make @include narrower:&lt;pre&gt;// @include        http://*.imdb.com/title/*/
// @include        http://*.imdb.com/title/*/#*
// @include        http://*.imdb.com/title/*/maindetails*
// @include        http://*.imdb.com/title/*/combined*
// @include        http://*.imdb.com/title/*/fullcredits*
// @include        http://*.imdb.com/title/*/epcast*&lt;/pre&gt;BTW, there's no need to include the &lt;a href=&quot;http://imdb.com&quot;&gt;http://imdb.com&lt;/a&gt; domain in any scripts - it doesn't exist any more (eliminated almost 2 years ago; it redirects to www now).&lt;/p&gt;</description>
      <pubDate>Sun, 15 Nov 2009 03:41:51 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:39568:190186</guid>
      <author>Chicago_gangster</author>
      <link>http://userscripts.org/posts/190186</link>
    </item>
    <item>
      <title>Please update, replied by ideal4ever</title>
      <description>&lt;p&gt;Thanks for your reply :)
&lt;br /&gt;What you said made me sure that whatever caused this was on my side, and from my settings. To my surprise I had not changed my settings for a long time and it was working fine before, but anyway, now that I tried to look into my settings, found out that there was this addon named &quot;script manager&quot; by which I had restricted javascripts from modifying images. Still don't know how it was working before.
&lt;br /&gt;Anyway, thank you again and good luck :)&lt;/p&gt;</description>
      <pubDate>Thu, 10 Sep 2009 03:25:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:34748:167694</guid>
      <author>ideal4ever</author>
      <link>http://userscripts.org/posts/167694</link>
    </item>
    <item>
      <title>Please update, replied by Henrik N</title>
      <description>&lt;p&gt;Works for me. Could you give an example page where this happens? Which browser?&lt;/p&gt;</description>
      <pubDate>Tue, 08 Sep 2009 16:36:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:34748:167263</guid>
      <author>Henrik N</author>
      <link>http://userscripts.org/posts/167263</link>
    </item>
    <item>
      <title>Please update, replied by ideal4ever</title>
      <description>&lt;p&gt;I'd really appreciate it if you (or you guys who read this) could take a look at it and see if you can fix this&lt;/p&gt;

&lt;p&gt;everything works but the image replacement doesn't take place, and the image is the same one, except enlarged and blurred&lt;/p&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:09:34 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:34748:167106</guid>
      <author>ideal4ever</author>
      <link>http://userscripts.org/posts/167106</link>
    </item>
    <item>
      <title>Compatible with GreaseKit, replied by Henrik N</title>
      <description>&lt;p&gt;Now compatible with GreaseKit (Safari).&lt;/p&gt;</description>
      <pubDate>Sun, 21 Jun 2009 22:05:51 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:29312:136453</guid>
      <author>Henrik N</author>
      <link>http://userscripts.org/posts/136453</link>
    </item>
    <item>
      <title>[mod] on demand enlarge, replied by lazyttrick</title>
      <description>&lt;p&gt;I've made this little mods:
&lt;br /&gt;- fetch larger image on demand, only when needed
&lt;br /&gt;- larger image moved a little to the left...&lt;/p&gt;

&lt;p&gt;thanks and congratulations for this script, it's simple and effective.&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;// ==UserScript==
// @name           IMDB enlarge actor pictures on hover
// @namespace      http://henrik.nyh.se
// @description    Enlarges actor pictures in IMDB cast lists when you hover over that table row.
// @include        http://*.imdb.com/title/*
// @include        http://imdb.com/title/*
// ==/UserScript==

var tiny_heads_xp = &quot;//a[contains(@onclick, 'tinyhead')]/img&quot;;

GM_addStyle(
	// Since we replaced thumbs with medium images and removed width/height, keep them small this way
	&quot;img.GM_actorPicture { height:32px; width:22px; }&quot; +
	// Enlarge on hover
	&quot;tr:hover a img.GM_actorPicture { height:auto; width:100px; position:absolute; margin-left:-107px; margin-top:-51px; }&quot;
);

$x(tiny_heads_xp).forEach(function(img) {
	img.addEventListener(&quot;mouseover&quot;,enlarge,false);
});

function enlarge(evt) {
	img = evt.target;
	if(img.src.search(/_SX100_SY150_/) &amp;lt; 0) {//if not enlarged yet
		img.removeEventListener(&quot;mouseover&quot;,enlarge,false);
		img.src = img.src.replace(/_SY\d+_SX\d+_/, &quot;_SX100_SY150_&quot;);  // Replace thumbs with larger images
		img.className = &quot;GM_actorPicture&quot;;
		img.height = img.width = null;
	}
}

/* Staple functions */

function $x(path, root) {
	if (!root) root = document;
	var i, arr = [], xpr = document.evaluate(path, root, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
	for (i = 0; item = xpr.snapshotItem(i); i++) arr.push(item);
	return arr;
}
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 18 Mar 2009 11:38:12 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:23387:103509</guid>
      <author>lazyttrick</author>
      <link>http://userscripts.org/posts/103509</link>
    </item>
    <item>
      <title>Recent IMDB change broke this script., replied by dDub</title>
      <description>&lt;p&gt;ahh, brill. Thanks for the fix =P&lt;/p&gt;</description>
      <pubDate>Mon, 12 Jan 2009 04:42:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:19259:89420</guid>
      <author>dDub</author>
      <link>http://userscripts.org/posts/89420</link>
    </item>
    <item>
      <title>Moved the picture, replied by Tekjock</title>
      <description>&lt;p&gt;I love this script. &lt;/p&gt;

&lt;p&gt;I moved the location of the picture, I changed the -77 to margin-left: -120px;&lt;/p&gt;

&lt;p&gt;One of my fav scripts&lt;/p&gt;</description>
      <pubDate>Thu, 25 Dec 2008 11:48:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:19447:86111</guid>
      <author>Tekjock</author>
      <link>http://userscripts.org/posts/86111</link>
    </item>
    <item>
      <title>Recent IMDB change broke this script., replied by Emilio Mejia</title>
      <description>&lt;p&gt;Thank you very much for the fix.&lt;/p&gt;</description>
      <pubDate>Mon, 22 Dec 2008 18:13:05 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:19259:85505</guid>
      <author>Emilio Mejia</author>
      <link>http://userscripts.org/posts/85505</link>
    </item>
    <item>
      <title>Recent IMDB change broke this script., replied by Henrik N</title>
      <description>&lt;p&gt;Thanks! Fixed.&lt;/p&gt;</description>
      <pubDate>Sat, 20 Dec 2008 10:22:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:19259:84949</guid>
      <author>Henrik N</author>
      <link>http://userscripts.org/posts/84949</link>
    </item>
    <item>
      <title>Recent IMDB change broke this script., replied by znerp</title>
      <description>&lt;p&gt;To fix this, change line 19 of the script to..&lt;/p&gt;&lt;pre&gt;img.src = img.src.replace(/_SY\d+_SX\d+_/, &quot;_SX100_SY150_&quot;);  // Replace thumbs with larger images&lt;/pre&gt;</description>
      <pubDate>Sat, 20 Dec 2008 08:44:05 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:19259:84933</guid>
      <author>znerp</author>
      <link>http://userscripts.org/posts/84933</link>
    </item>
    <item>
      <title>Archived Comments, replied by CataCC</title>
      <description>&lt;p&gt;it's working fine for me&lt;/p&gt;</description>
      <pubDate>Sat, 06 Sep 2008 20:06:23 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25362</guid>
      <author>CataCC</author>
      <link>http://userscripts.org/posts/25362</link>
    </item>
    <item>
      <title>Archived Comments, replied by Henrik N</title>
      <description>&lt;p&gt;ebkworldwide: Not something I'd use myself, so I can't justify spending time on it, but feel free to write a script for that based on this one.&lt;/p&gt;</description>
      <pubDate>Thu, 24 Apr 2008 09:20:23 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25363</guid>
      <author>Henrik N</author>
      <link>http://userscripts.org/posts/25363</link>
    </item>
    <item>
      <title>Archived Comments, replied by ekbworldwide</title>
      <description>&lt;p&gt;Is this a crazy idea?&lt;/p&gt;

&lt;p&gt;How about if you made a script to enlarge movie posters on hover?&lt;/p&gt;

&lt;p&gt;Like this:
&lt;br /&gt;&lt;a href=&quot;http://farm3.static.flickr.com/2245/2437766926_a25d4cb43a.jpg&quot;&gt;http://farm3.static.flickr.com/2245/2437766926_...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 24 Apr 2008 00:35:01 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25364</guid>
      <author>ekbworldwide</author>
      <link>http://userscripts.org/posts/25364</link>
    </item>
    <item>
      <title>Archived Comments, replied by ekbworldwide</title>
      <description>&lt;p&gt;I just re-installed your script. The problem persists. &lt;/p&gt;

&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;/p&gt;

&lt;p&gt;Suggestion...&lt;/p&gt;

&lt;p&gt;You could post version notes with dates.&lt;/p&gt;

&lt;p&gt;Something like this&lt;/p&gt;

&lt;p&gt;Version 1.2 (27 Nov. 2007)-- adds link to RottenTomatoes page even if it didn't find a score.
&lt;br /&gt;Version 1.1 (26 Oct. 2007)-- fixes error on combined and maindetails pages -- didn't grab movieID correctly.&lt;/p&gt;</description>
      <pubDate>Sun, 06 Apr 2008 09:58:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25365</guid>
      <author>ekbworldwide</author>
      <link>http://userscripts.org/posts/25365</link>
    </item>
    <item>
      <title>Archived Comments, replied by Henrik N</title>
      <description>&lt;p&gt;I still can't reproduce this issue. It works fine for me. Tried reinstalling the script from this page to make sure I was up to date, and it still works fine.&lt;/p&gt;

&lt;p&gt;So this is what the script does. Perhaps someone could look at the page source of a page where this breaks, and tell me where it goes wrong:&lt;/p&gt;

&lt;p&gt;It finds all images surrounded by a link with an onclick attribute containing the text &quot;tinyhead&quot;. This should be the actor pictures.&lt;/p&gt;

&lt;p&gt;It then takes the image URL and replaces
&lt;br /&gt;_SX123_SY456_
&lt;br /&gt;with
&lt;br /&gt;_SX100_SY150_
&lt;br /&gt;where 123 and 456 can be any numbers.&lt;/p&gt;

&lt;p&gt;What are the actor picture URLs? What are the onclicks of their links?&lt;/p&gt;</description>
      <pubDate>Sat, 29 Mar 2008 09:13:54 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25366</guid>
      <author>Henrik N</author>
      <link>http://userscripts.org/posts/25366</link>
    </item>
    <item>
      <title>Archived Comments, replied by TonyS</title>
      <description>&lt;p&gt;I'm experiencing the same thing as ekbworldwide. The enlarging part does work, but the picture is blurred. IIRC, this happened a couple of months ago and an update fixed it.&lt;/p&gt;</description>
      <pubDate>Sat, 29 Mar 2008 03:43:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25367</guid>
      <author>TonyS</author>
      <link>http://userscripts.org/posts/25367</link>
    </item>
    <item>
      <title>Archived Comments, replied by Quivis</title>
      <description>&lt;p&gt;Ooops, sorry. That's from old code. Oh, well. It works for me. ;-)&lt;/p&gt;</description>
      <pubDate>Mon, 24 Mar 2008 10:37:01 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25368</guid>
      <author>Quivis</author>
      <link>http://userscripts.org/posts/25368</link>
    </item>
    <item>
      <title>Archived Comments, replied by Quivis</title>
      <description>&lt;p&gt;Had the same problem. Changed this function:&lt;/p&gt;

&lt;p&gt;with_each(tiny_heads_xp, function(img) {
&lt;br /&gt; 	img.src = img.src.replace(/_SX23_SY30_\.(jpg|gif|png)$/, '_SY140_SX100_.$1'); //&amp;lt;--&gt;&lt;/p&gt;

&lt;p&gt;Seems they're changing stuff around on imdb from time to time.&lt;/p&gt;</description>
      <pubDate>Mon, 24 Mar 2008 10:32:26 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25369</guid>
      <author>Quivis</author>
      <link>http://userscripts.org/posts/25369</link>
    </item>
    <item>
      <title>Archived Comments, replied by ekbworldwide</title>
      <description>&lt;p&gt;Hmmm....&lt;/p&gt;

&lt;p&gt;I turned off all my idmb scripts - and I also turned of things like &quot;Link Tooltips&quot; - but it was no good. No page at imdb works - all images are blurred.&lt;/p&gt;

&lt;p&gt;I'm using Adblock Plus, Adblock Plus Element Hiding Helper, NoScript, Remove it Permanently. I'll play around with the settings to see if I can get your script to work.&lt;/p&gt;</description>
      <pubDate>Sat, 22 Mar 2008 18:32:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25370</guid>
      <author>ekbworldwide</author>
      <link>http://userscripts.org/posts/25370</link>
    </item>
    <item>
      <title>Archived Comments, replied by Henrik N</title>
      <description>&lt;p&gt;ekbworldwide:&lt;/p&gt;

&lt;p&gt;Weird, it Works For Me&#8482;. On that page with that actor. The screenshot looks like the enlarging part works, but the thumbnail hasn't been swapped for the larger-size image first.&lt;/p&gt;</description>
      <pubDate>Sat, 22 Mar 2008 11:30:49 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25371</guid>
      <author>Henrik N</author>
      <link>http://userscripts.org/posts/25371</link>
    </item>
    <item>
      <title>Archived Comments, replied by ekbworldwide</title>
      <description>&lt;p&gt;I just upgraded.&lt;/p&gt;

&lt;p&gt;It's not working.&lt;/p&gt;

&lt;p&gt;image (example of the problem)
&lt;br /&gt;&lt;a href=&quot;http://farm3.static.flickr.com/2033/2350664735_191efb3354.jpg&quot;&gt;http://farm3.static.flickr.com/2033/2350664735_...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Near Dark (1987)
&lt;br /&gt;&lt;a href=&quot;http://www.imdb.com/title/tt0093605/&quot;&gt;http://www.imdb.com/title/tt0093605/&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 22 Mar 2008 03:49:21 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25372</guid>
      <author>ekbworldwide</author>
      <link>http://userscripts.org/posts/25372</link>
    </item>
    <item>
      <title>Archived Comments, replied by Henrik N</title>
      <description>&lt;p&gt;Fixed! Thanks for letting me know.&lt;/p&gt;</description>
      <pubDate>Thu, 07 Feb 2008 17:55:49 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25373</guid>
      <author>Henrik N</author>
      <link>http://userscripts.org/posts/25373</link>
    </item>
    <item>
      <title>Archived Comments, replied by Andreas F</title>
      <description>&lt;p&gt;Does not work anymore, how do you edit the script?&lt;/p&gt;</description>
      <pubDate>Thu, 07 Feb 2008 17:19:50 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25374</guid>
      <author>Andreas F</author>
      <link>http://userscripts.org/posts/25374</link>
    </item>
    <item>
      <title>Archived Comments, replied by Uqqeli</title>
      <description>&lt;p&gt;Change the regular expression to this:
&lt;br /&gt;&lt;code&gt;img.src = img.src.replace(/\/VM\._SX[\d]+_SY[\d]+_\.(jpg|gif|png)$/, '/VM._SX100_SY140_.$1');&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 06 Feb 2008 17:00:58 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10947:25375</guid>
      <author>Uqqeli</author>
      <link>http://userscripts.org/posts/25375</link>
    </item>
  </channel>
</rss>
