Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

yahoo Image Relinker

Adaption of the great Google Image Relinker script for the yahoo image search.


Details

Adaption of the great Google Image Relinker script by Patrick Cavit with the mod by FurYy for the yahoo image search.

Thanks to Patrick, FurYy and Nimit Maru!

Works with For version informations look up the script source.
This script is released under GPL license Version 2 or (at your option) any later version.

Subscribe to update feed You can use this feed to stay in touch with updates to all my scripts.




Mar 17, 2008
thorbenhauer Script's author

It rewrites yahoo image search links to point straight to the pictures.

 
Mar 15, 2008
love prone User

sorry..But what this script do ?

 
Nov 3, 2007
thorbenhauer Script's author

New version up and running. Hopefully without any problems. If so just leave another comment. I'll look into it.

 
Nov 2, 2007
Dan 1 User

This is no longer working as of a few days ago (today is 2007-11-01). Yahoo must have changed some code. Can we get an update?

 
Sep 19, 2007
thorbenhauer Script's author

Thanks Nimit Maru!
You're right! I changed the mentioned line as you've advised.

 
Sep 15, 2007
Nimit Maru Scriptwright

Hey, sorry for the late response, I didn't realize you had asked me this question.

The reason the line I suggested works better is that it lets the browser itself do the URI decoding. There are usually more characters to decode than just the "/". For a sample query (this may be different if you try this too many days after I suggest this), try this query in Y! image search: "Coffee Mug Black $10.jpg". It should return just one image. Now try clicking on that img with your line in, and then with my line instead, and you'll see that it breaks with the line that you have.

Hope that helps, thanks!

 
Jun 25, 2007
thorbenhauer Script's author

Hello Nimit! Thank you for your comments. Could you please explain why

link.href = "http://" + decodeURIComponent(decodeURIComponent(ymatch[1]));

works "a lot better"? Do you have some examples on which the code

link.href = "http://" + ymatch[1].replace( /%252F/g , "/");

doesn't work?

In addition, I've removed the question marks, thanks for the hint!

 
Jun 22, 2007
Nimit Maru Scriptwright

Oh yes, you also need to remove the "?" from the end of the urls, because yahoo inserts ylt link tracking on the image search urls.

 
Jun 22, 2007
Nimit Maru Scriptwright

Hey, thanks for the yahoo version of the script. Just wanted to let you know that this script works a lot better in the url decoding when the last line looks like this:

link.href = "http://" + decodeURIComponent(decodeURIComponent(ymatch[1]));

 
Aug 10, 2006
thorbenhauer Script's author

:-)

 
Aug 10, 2006
Dan 1 User

Woohoo!!!! Nice!!!

You could comment on this script if you were logged in.