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

Google Image Relinker Mod

Rewrites google image search links to point straight to the pictures.


Details

Rewrites google image search links to point straight to the pictures.

Based on the great Google Image Relinker script and incorporating some different mods.

Thanks and credits go to Patrick Cavit, FurYy, Juhani Naskali and ekbworldwide!

Works with *) Opera doesn't understand the tld placeholder in the @include directive. So you have to add a directive for each top level domain you need (see script) or replace the tld with * (not recommended because the script runs also on $scriptdomain.foo.bar e.g.).

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.




Jul 22, 2008
Virzin Scriptwright

Orkut Templates for Blogger Is Live Now Download From Below Link

Link - http://info.scrapur.com/orkut/orkut-templates-f...

Downlaod and Make Yours Personal Orkut Profile Using Blogspot

 
Jul 10, 2008
thorbenhauer Script's author

Concerning blogspot.com:
http://userscripts.org/scripts/show/29891

Hope it improves the situation.

Concerning images.google.tld/images (search view):
The script source contains a switch to exclude images from blogger.com from link rewriting. Just uncomment the if-clause marked in the code. It's disabled by default to allow the use of proxy workarounds.

Concerning images.google.tld/imgres (framed result view):
I've discarded the idea of manipulating the top frame. Mainly because it's possible, that the picture can't be found anymore on the bottom frame. So it's not a reliable source to fetch the right folder path.
In cases where it can be found, the Blogspot Image Relinker script is also involved and the link will be rewritten in the bottom frame.

 
Jul 10, 2008
thorbenhauer Script's author

gutenberg.org relies on the referrer. Disabling the referrer in your browser will proof this. I'm using RefControl for such purposes. Either you can block all referrers or just block it for gutenberg.org.

If you don't want to use this extension you can fix this with Privoxy too. See http://www.privoxy.org/user-manual/actions-file...

Btw. I've implemented a test script for blogspot/blogger to relink the images. Seems to work. I'll throw it on the server over the day.

 
Jul 10, 2008
ekbworldwide Scriptwright

I was going to forget about Privoxy but then I decided I had to learn more about it. gutenberg.org often won't allow a direct link from google images.

a gutenberg.org image via http://tbn0.google.com/images?q=...

The direct link...
http://www.gutenberg.org/files/18757/18757-h/im...
.. if you click it - you'll (probably?) get this

One final question about Privoxy - can Privoxy stop that from happening? And make the direct link clickable?

site:gutenberg.org - Google Image Search
http://images.google.com/images?hl=en&q=site%3A...

 
Jul 9, 2008
thorbenhauer Script's author

The filter works for me. After adding it to the user.action file, restarting Privoxy (not really necessary, but to be sure) and flushing the browser cache no download dialog appeared. I've tested many pictures, even from blogs, not only over the Google image search. This also doesn't interfere with my script. Of course if it's disabled you get the regular Google image search pages. But clicking on the top thumbnails in the framed result view, there is no download dialog.
Are you sure Privoxy is installed and configured correctly? What happens if you go to http://config.privoxy.org/show-status with Privoxy enabled?

For questions about Privoxy use the mailing list
https://lists.sourceforge.net/lists/listinfo/ij...
I think there is no official support forum.

About your script ideas:
It's worth a try. I'm not sure about the part in the framed result view, but for the blogs it should be possible. I'll give you an update soon.

 
Jul 9, 2008
ekbworldwide Scriptwright

How about having your script to stop a dialog box from opening for blogger images?

google image stuff

If an image has a link location of...

http://bp + number .blogger.com/ + blahblah + .jpg
http://bp + number .blogger.com/ + blahblah + .gif
etc

... do not rewrite the link and open the blogger image in a frame.

At the top of the frame rewrite the link location of the thumbnail. The link location and the image location have the same beginning and the same ending. The script could search the blogger page, grab the image link, add a "-h" and fix the link location. If you click the thumbnail - you get the image's page.

This solution isn't perfect but it's workable - isn't it?

===================================
I'll be working on this second idea - I have a feeling you could write a script to do it about 100X faster.

blogger page stuff

On blogger pages - (all?) the location links for clickable images could be rewritten.

A location link could become the image link with "-h" added.

I may be wrong - but image links seem to be kosher and easily changed to point to the image's page simply by adding "-h".

 
Jul 9, 2008
ekbworldwide Scriptwright

Thank you.

>> Fixing half of the links doesn't really improve the situation,
>> or do you think otherwise?

Fixing half is a bad idea.

>> A better way
>> A filter would look like this:
{ -filter +hide-content-disposition{block} } .blogger.com

I added that filter to the default.filter file - I just copied and pasted it into my filters. I know you wrote "would look like" but I don't know how long it will take me to figure out the Privoxy code to use. I learn coding things very slowly.

1
If I disable your script - the Privoxy filter "half" works at google images. It opens a page in a google image frame. But clicking on the top thumbnail or the image on the page - opens a dialog box.

2
If I use your script - the Privoxy filter doesn't work - and a dialog box is opened.

3
The filter doesn't work at blogger (see #1) if you click on an image.

example
Juan de la Cuerva: RUMBO A MARTE
http://juandelacuerva.blogspot.com/2007/11/rumb...

Clicking on the Mars photo - forces open a dialog box.

===

I spent about 10 minutes googling in vain for a Privoxy forum. Without a forum to ask questions - I don't think I can figure it out. Privoxy doesn't have a forum?

 
Jul 8, 2008
thorbenhauer Script's author

It's a pita but there is no easy workaround on the greasemonkey side.

If you'll look up your google image search you'll find both types: images locations (containing /sxxx/) and link locations (containing /sxxx-R/) as you called them below.

In case of a image location you can add -h to the url. In the other case it's not that trivial:
see http://knownissues.blogspot.com/2007/11/clickin...

Without a XMLHTTPRequest it's not possible to get the right image location folder. And doing this for every picture will bloat network traffic and processing time.

Fixing half of the links doesn't really improve the situation, or do you think otherwise?

A better way of fixing this issue would be the use of a local proxy like Privoxy. You could filter the content-disposition HTTP response header and force your browser to render the image.

See http://www.privoxy.org/user-manual/actions-file...

A filter would look like this:


{ -filter +hide-content-disposition{block} }
.blogger.com

 
Jul 7, 2008
ekbworldwide Scriptwright

I just installed your script - blogger images force open a dialog box.

example

Juan de la Cuerva: RUMBO A MARTE
http://juandelacuerva.blogspot.com/2007/11/rumb...
I don't understand Spanish - the images are the important part.

Scroll down a little and you'll see this

link location - click it and a dialog box opens
http://bp3.blogger.com/_QcPSRUCyrgg/R1AKGyxu0NI...

image location - click it and a dialog box opens
http://bp3.blogger.com/_QcPSRUCyrgg/R1AKGyxu0NI...

If you add "-h" to the image location after s400 - its blogger image page will open
http://bp3.blogger.com/_QcPSRUCyrgg/R1AKGyxu0NI...

===

site:blogger.com - Google Image Search
http://images.google.com/images?q=site:blogger....

Clicking a blogger image forces open a dialog box.

===

Blogger images also break the direct links feature of the CustomizeGoogle add-on

link location - click it and a dialog box opens
http://bp3.blogger.com/_QcPSRUCyrgg/R1AKGyxu0NI...

image location - click it and a dialog box opens
http://bp3.blogger.com/_QcPSRUCyrgg/R1AKGyxu0NI...

 
Apr 24, 2008
thorbenhauer Script's author

Nevermind! Thanks for your feedback!

 
Apr 24, 2008
WOFall User

M'I bad. I didn't delete a similar script, which was badly named.

Sorry about that. Works perfectly, 100% (9.5 included)

 
Apr 21, 2008
thorbenhauer Script's author

@WOFall
Please provide a link to a page on which your problem occurs.
I checked it with Opera 9.27 and the latest script version. It worked for me.

 
Apr 16, 2008
WOFall User

Doesn't quite work in opera. The thumbnail and the links underneath both link directly to the image. I know userjs and greasemonkey are different things, but it would be nice to have the original link in opera.

 
Aug 10, 2006
thorbenhauer Script's author

;-)

 
Aug 10, 2006
Dan 1 User

Rock on!!! Thank you!!! :-)

 
Aug 10, 2006
thorbenhauer Script's author

@Dan http://userscripts.org/scripts/show/5082 not that much work ;-)

 
Aug 9, 2006
thorbenhauer Script's author

The original script rewrites the google image search links to point straight to the pictures. Someone requested to get the old links back which pointed to the website that contains the image. FurVy wrote a hack for this issue. I just implemented this hack for myself. So the thumbnail-link points to the pic and the (new) domain-link beneath to the website. That's all :-)

 
Aug 9, 2006
Dan 1 User

So what's the hack do? Happily using the current relinker (especially with the Browse Images Toolbar Extension), but does this add functionality? And I'm wondering how much work would have to be done to have Yahoo Images re-link the way this script does...

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