IMDb enlarge actor pictures on hover

By Henrik N Last update Jun 21, 2009 — Installed 16,617 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 38 posts, 17 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
CataCC Scriptwright

it's working fine for me

 
Henrik N Script's Author

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.

 
ekbworldwide Scriptwright

Is this a crazy idea?

How about if you made a script to enlarge movie posters on hover?

Like this:
http://farm3.static.flickr.com/2245/2437766926_...

 
ekbworldwide Scriptwright

I just re-installed your script. The problem persists.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Suggestion...

You could post version notes with dates.

Something like this

Version 1.2 (27 Nov. 2007)-- adds link to RottenTomatoes page even if it didn't find a score.
Version 1.1 (26 Oct. 2007)-- fixes error on combined and maindetails pages -- didn't grab movieID correctly.

 
Henrik N Script's Author

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.

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:

It finds all images surrounded by a link with an onclick attribute containing the text "tinyhead". This should be the actor pictures.

It then takes the image URL and replaces
_SX123_SY456_
with
_SX100_SY150_
where 123 and 456 can be any numbers.

What are the actor picture URLs? What are the onclicks of their links?

 
TonyS User

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.

 
Quivis User

Ooops, sorry. That's from old code. Oh, well. It works for me. ;-)

 
Quivis User

Had the same problem. Changed this function:

with_each(tiny_heads_xp, function(img) {
img.src = img.src.replace(/_SX23_SY30_\.(jpg|gif|png)$/, '_SY140_SX100_.$1'); //<-->

Seems they're changing stuff around on imdb from time to time.

 
ekbworldwide Scriptwright

Hmmm....

I turned off all my idmb scripts - and I also turned of things like "Link Tooltips" - but it was no good. No page at imdb works - all images are blurred.

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.

 
Henrik N Script's Author

ekbworldwide:

Weird, it Works For Me™. 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.

 
ekbworldwide Scriptwright

I just upgraded.

It's not working.

image (example of the problem)
http://farm3.static.flickr.com/2033/2350664735_...

Near Dark (1987)
http://www.imdb.com/title/tt0093605/

 
Henrik N Script's Author

Fixed! Thanks for letting me know.

 
Andreas F User

Does not work anymore, how do you edit the script?

 
Uqqeli User

Change the regular expression to this:
img.src = img.src.replace(/\/VM\._SX[\d]+_SY[\d]+_\.(jpg|gif|png)$/, '/VM._SX100_SY140_.$1');

 
Dink Scriptwright

IMDB changed things up a bit...this script doesn't work correctly anymore...could you please update it??...I love this script!!

 
sw1tch Scriptwright

Just realised how much I missed this script when it stopped working. Thanks Martin and Henrik for the speedy update!

 
Henrik N Script's Author

Marin Purgar: Thanks! Confirmed to work. Updated the script.

 
dDub User

Marin, the onClick replacement seemed to to the trick! Nice find...

 
Marin Purgar User

OK, the fix is as follows:

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

bb4now,
PMC

 
dDub User

Thanks for the quick response Henrik and a bigger thanks for the script. Best of luck for finding the fix!

 
Henrik N Script's Author

Confirmed it doesn't work. If it's a simple fix, I'll try to get it done later today.

 
dDub User

Hrmn. Is it just me or has anyone else noticed that this script suddenly stopped working?

I installed the "IMDB google headshot" that is based on this script and it seems to work fine for no image entries.

I took a quick look at the code and did some messing around but couldn't get things to work. I am a little rust with my js'ing so...

 
Henrik N Script's Author

Cleaned up the code a little; added support for .png extension, though I've never encountered it.

 
Henrik N Script's Author

OnOffPT: You need to install the Greasemonkey extension, then restart Firefox, then click "Install" again. We should add those instructions to the site.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel