The other day I needed to create a bookmarklet, which was an interesting exercise in and of itself, but once I got all of those issues worked out, I wanted to make it pretty by adding an icon. Apparently, this is not something easily accomplished, and there is little information out there that I could locate on how one might go about doing this. I did manage to find this, though, over at tapper[ware]:
Now, I have to say that his little hack to make all of this magic happen is rather ingenious, and I do like it. I just could not get it to work in my version of Firefox. Everything started out great in the beginning. The first example worked just fine for me. I can take this little icon:
… and add it to this bookmarklet:
Apparently, I’m just not smart enough to figure that out, so I did the next best thing and just gave up trying, and then went with a slightly different approach:
This version uses the
There’s probably a better way to do this still, but I did what I could to do what I wanted to do, and that’s going to have to be good enough for now!
One Response to ' Adding an Icon to Your Bookmarklet '
Leave a reply
You must be logged in to post a comment.