Google Images direct link

NOTE: Since July 2016 this script is unmaintained. It is here just for historical purposes and to let other people fork it. Adds direct links to images and pages in google image search

< Feedback on Google Images direct link

Review: Good - script works

§
Posted: 2015-07-21

extra data in image link

Thanks for this script, very useful! Just one thing, when I copy or click on an image to go directly to it, there is extra unwanted data on the end of the URL, that comes from the Google redirect link. I'm using google.de with cookies disabled. For example:

- disable Google Images direct link script, and do image search for "kitten".
- look at a result, eg.:
http://www.google.de/imgres?imgurl=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F0%2F06%2FKitten_in_Rizal_Park%2C_Manila.jpg&imgrefurl=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FKitten&h=2592&w=1728&tbnid=1M5He1LIAy_DUM%3A&docid=-uzr7GKcWawrMM&hl=en&ei=y02uVf_tJsGBUcbUpdAP&tbm=isch&iact=rc&uact=3&dur=1701&page=1&start=0&ndsp=15&ved=0CFMQrQMwC2oVChMIv__B1K7sxgIVwUAUCh1Gagn6

- re-enable Google Images direct link script, and reload the page.
- hovering mouse over the same result, the direct link is now shown as:
https://upload.wikimedia.org/wikipedia/commons/0/06/Kitten_in_Rizal_Park,_Manila.jpg
- however, clicking on or copying the link, the URL you are actually taken to is:
https://upload.wikimedia.org/wikipedia/commons/0/06/Kitten_in_Rizal_Park,_Manila.jpg?iact=rc&uact=3&page=1&start=0&ndsp=15&ved=0CFUQMygLMAtqFQoTCMbwlP6v7MYCFQrsFAod-3YHog
...there is extra data at the end which comes from the last part of the underlying Google redirect link.
- if you use the back button to go back to the search page, hovering over the image now shows the above URL, with the extra data. That URL is also recorded in the browser history.
- the direct link below to the containing page works fine.

- this doesn't happen on encrypted.google.com, there the original URL is:
http://www.google.com/imgres?imgurl=https://upload.wikimedia.org/wikipedia/commons/0/06/Kitten_in_Rizal_Park,_Manila.jpg&imgrefurl=https://en.wikipedia.org/wiki/Kitten&h=2592&w=1728&tbnid=1M5He1LIAy_DUM:&docid=-uzr7GKcWawrMM&ei=1UyuVeO8MqOaygOhtojYCA&tbm=isch&ved=0CDwQMygMMAxqFQoTCKP7pt-t7MYCFSONcgodIRsCiw
...it doesn't have the iact, uact, dur, page, start, and ndsp elements that google.de does. Copying/clicking the direct link works correctly. I can't access google.com, so I don't know what it does.

Generally, clicking on the direct link works anyway, despite the extra data, so I'm able to use the script. It's more about copying it, and the history entries.

Lorentz83Author
§
Posted: 2015-07-21

Hi, thank you for your interest on my work. I'm currently traveling, therefore I don't have time to work on it. But I'll try to fix everything the next month. Just please be patient :)

Lorentz83Author
§
Posted: 2015-08-28

Hi sumguy,
I'm checking your report, but I cannot reproduce the error. I remember I had already fix a similar problem, are you sure you are using the last version of the script?
Can you tell me what version of firefox you use (or if you use any other browser)?
The problem is that google adds that extra data using a nasty js, and to prevent it I used an even nastier hack. It is possible that it doesn't work with some specific version of the browser.
Thank you

Post reply

Sign in to post a reply.