surprisemonkey / hoverzoom

Automatically exported from code.google.com/p/hoverzoom
0 stars 1 forks source link

Support for image_src and og:image #101

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The use of image_src and og:image are becoming a standard for linking to the 
full sized image that's displayed on a page. Reddit (among others) looks for 
<link rel="image_src" type="image/jpg" href="/url/to/image.jpg" /> in the 
document, and Facebook looks for <meta property="og:image" 
content="/url/to/image.jpg" />. This is useful when you have an HTML document 
with an embedded image, and you want to ensure the correct image is scraped by 
those sites, and not some random image, or an ad that also appears on the page.

If hoverzoom looked for these tags on the linked page, it could show the full 
sized image even when the link points to an HTML document.

Original issue reported on code.google.com by shhe...@gmail.com on 20 Jul 2011 at 2:49

GoogleCodeExporter commented 9 years ago
That's a nice idea, thanks. I'll see what I can do about it, however I think 
such a script should apply only for some specific sites known to work with it. 
Loading a page and analysing it each time the user hovers a link seems a bit 
overkill :)

Original comment by romain.v...@gmail.com on 21 Jul 2011 at 3:15

GoogleCodeExporter commented 9 years ago
You're right about it being overkill, and a white list would certainly be a 
good idea. The problem this feature request sets out to solve, is all the 
requests for specific site support. "Support this site!", "Support that site!". 
I think it would be easier all around to say back, "Those sites should use one 
of these established standards, and we'll add it to the white list."

I would be nice if the white list was editable by the end user though.

Original comment by shhe...@gmail.com on 28 Jul 2011 at 3:30