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

GIS XPointer

Change green text under Google Image Search to point exactly to the image on its original page

This script depends on FXPointer or XPointer UserJS for the link to work in Firefox and Opera. See the source for their homepages.

As of 2008-06-16, XPointer UserJS does not support contains(). I don't know how to target @src more generally than contains(, file_name), so this script does not work in Opera. I would try to detect support for contains() and fallback to @src=full_href_from_google so that several images work.My fault, I didn't set up XPointer UserJS as global userscript in Opera.

Customize Google 0.72 link rewriting is accounted for in this script. In fact the code path for that case is one-third the general case. Thanks, guys&gals.

2008-06-21: now it fallbacks to the link which points to the image, as GIS also indexes those.




Jun 22, 2008
hdh Script's author

Hi Jeroen,

I tried it again on a fresh Opera 9.5 and realized last time I didn't set it as global userscript, so that was entirely my fault.

Also, I think your scripts should be hosted here to reach a wide audience.

 
Jun 22, 2008
JeroenH User

Hey,

Great use of XPointer and the userJS! This is useful.

What exactly does not work in Opera 9.5 regarding contains?
I tried http://science.howstuffworks.com/nuclear-test.h...')]) and that one works fine in Opera 9.5 here. Also other links I tried were also working fine. There were some weeklies where XPath was broken, so if you're using one of those, that could explain it.

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