Google Image Relinker Mod

By thorbenhauer Last update Oct 27, 2010 — Installed 57,632 times.

suggestion for "odd" urls

in
Subscribe to suggestion for "odd" urls 5 posts, 3 voices



ekbworldwide Scriptwright
FirefoxWindows

I'm using Version: 0.5.4

The problem doesn't happen that often - I know that the there's nearly a zero chance that somebody wants to look at images from springfieldkarateandfitness.com - but it happens at big sites too.

How about if an image link doesn't end in an image extension (aka .jpg, .jpeg, .gif, .png, etc) - the script doesn't try to open the image in a tab but wraps it up in an IMG tag.

example

site:springfieldkarateandfitness.com - Google Image Search
http://images.google.com/images?hl=en&lr=&safe=...=

example image

the image link force opens a dialog box...
http://www.springfieldkarateandfitness.com/msdpic

...but wrapped in an IMG tag it appears as an image

 
thorbenhauer Script's Author
FirefoxX11

The URL is not the problem here. Again it's the server that sends the wrong content type (application/octet-stream) for Firefox to display the image properly. Looking at your search for springfieldkarateandfitness.com one can see that this is not a generic case for this server. Only some unpredictable URLs are affected, unlike the cases we had before (blogspot, blogs.yahoo.co.jp). So adding a regular expression in the script code is some sort of an overkill and just based on trial-and-error.
A script could check for problematic HTTP header in advance, but this would bloat web traffic for each page load because this has to be done for every picture to be really sure. High costs for some rare cases.

 
ekbworldwide Scriptwright
FirefoxWindows

>> A script could check for problematic... Only some unpredictable URLs are affected...

I should have said what I was thinking in my head.

How about having a bit of code to allow the user to enter problematic domains that need their images wrapped in image tags?

Like this:

// put problematic domains here
{
example.com
}

And then if the user can just enter the domains.

 
thorbenhauer Script's Author
FirefoxX11

You can use the same feature introduced here:
http://userscripts.org/topics/13339?page=1#post...
Just add /example.com/ to the list.

 
vhanla Scriptwright
ChromeWindows

Would you mind changing the limited scope for non US google image domains, I mean,I have to modify this script in order to make it work on another domain
// @include http://www.google.com/images?* to // @include http://www.google.*/images?*

Because the domain is not only .com but adds .pe, so it is .com.pe in my country
~> http://www.google.com.pe/images?*

Thanks by advance.

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