nhoening / gritttt-rss

Implements 'cancelled' sharing-features of Google Reader for the excellent open-source RSS-Reader TinyTiny-RSS: share any page on the web via a bookmarklet and show your shared items in a widget on any website you want. Also allow to import shared&starred articles from Google Reader.
gritttt-rss.nicolashoening.de
Other
48 stars 4 forks source link

Driveby-sharing: Chrome doesn't work on pure image files (jpg/png/...). #32

Open seul opened 12 years ago

seul commented 12 years ago

It doesn't work here: http://25.media.tumblr.com/tumblr_m5m5339Sga1qza249o1_400.jpg And neither on some other jpg I tried Nor on this .png: http://gritttt-rss.nicolashoening.de/style/logo.png

seul commented 12 years ago

How to reproduce: In chromium

nhoening commented 12 years ago

The line

head.appendChild(css);

throws this error:

Uncaught TypeError: Cannot call method 'appendChild' of undefined

Reason is tat there is no HTML structure in an image to append our CSS to. Firefox has an implicit HTML structure, it seems. I don't know how best fix this. At least we should check if head is defined, of course, but I am unsure if sharing images will work (nicely) on Chrome.