andrewducker (
andrewducker) wrote2011-04-30 09:13 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
The Thing What I Wrote
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.
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.
no subject
Test:
Excellent.
no subject
no subject
I'm looking at this documentation and not seeing anything useful for that.
no subject
(Of course for your example case of xkcd people are hardly going to fail to recognise where it's from, but...)
no subject
no subject
no subject
no subject
no subject
no subject
And also converts a relative URL into an absolute one.
Do me a favour and give it a test run?
https://addons.mozilla.org/en-US/firefox/addon/image-source-copier/
Should show version 0.3 (which is the version I just uploaded).
I ought to work out how to do options, so I can turn on and off the different bits of functionality for different users...
no subject
no subject
no subject
I've changed the A into a lower case one though, just for you. (I shan't bother doing another release for that, it'll get picked up next time I do one though).
no subject
no subject
Some way of combining the two would be lovely, I agree.
no subject
no subject
no subject
no subject
So I try to do something like this and post it, with the image being a link to the source.