andrewducker: (Juggling)
[personal profile] andrewducker
I spent the afternoon grappling with Javascript, writing my very first Firefox addon.

I repost images on Livejournal/Dreamwidth a lot, and I'm not the only one. And I've noticed that I tend to forgot the alt text (and title text) when I do that.

So what would be very handy is if I could right-click on an image and select "Copy Image Source" and get the image, complete with any information that was in the IMG tag.

And so I wrote one.

You can get it here if you think it would be useful.

And if you have any feedback on improvements to it, just let me know. It's trivially simple, but that doesn't mean I've missed something obvious that would make it better for some people.

Date: 2011-05-01 03:44 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Ooh, nice. I had a copy image source addon ages back, but it stopped being updated and died. Nice one.

Test:
Juggling

Excellent.

Date: 2011-05-01 03:46 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Oh, one thing, no idea how, but it's right at the bottom of my now rather long context menu (need to trim some of that, especially bad for images that are links), being able to move it, or just have it appear with the rest of the copy/edit stuff would be good. It must be possible, because COLT appears there.

Date: 2011-05-01 07:14 am (UTC)
simont: A picture of me in 2016 (Default)
From: [personal profile] simont
I idly wonder if it might be a good idea to have it default to also pasting a line of text after the image saying something like "(copied from <a href="original page source">here</a>)". Both to gently hint that giving credit is polite to people who tend to forget that, and to make life (even) easier for those who were planning to anyway.

(Of course for your example case of xkcd people are hardly going to fail to recognise where it's from, but...)

Date: 2011-04-30 08:30 pm (UTC)
tysolna: (fry cap)
From: [personal profile] tysolna
... while recuperating from a cold. My hat's off to you, Sir.

Date: 2011-04-30 10:39 pm (UTC)
From: [identity profile] marrog.livejournal.com
That's pretty awesome. Does it copy the height and width, too? It's only polite, after all...

Date: 2011-05-01 03:44 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
It does if it's defined in the image it's copying, but not if not, from what I can see.

Date: 2011-05-02 08:42 pm (UTC)
From: [identity profile] marrog.livejournal.com
Looks good. Outputs an upper-case 'A' in the tag, but I suspect only I would be irritated by such a thing.

Date: 2011-05-02 08:42 pm (UTC)
From: [identity profile] marrog.livejournal.com
Also irritating: height before width. Wrong way round. Was confused for a moment.

Date: 2011-04-30 11:41 pm (UTC)
From: [identity profile] theweaselking.livejournal.com
Useful if you're going to hotlink, but unfortunately not the greatest choice for me. Still, neat!

Date: 2011-05-01 11:14 am (UTC)
From: [identity profile] johncoxon.livejournal.com
I'd much rather people used hyperlinks :(

Date: 2011-05-01 12:50 pm (UTC)
From: [identity profile] johncoxon.livejournal.com
I think it would be better to link back to the original source with webcomics and the like. Photographs etc are different.

August 2025

S M T W T F S
      1 2
3 4 5 6 7 8 9
10 11 12 1314 15 16
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 18th, 2025 06:37 am
Powered by Dreamwidth Studios