My latest SitePoint article is up: Better Living Through Bookmarklets. I’m a huge fan of bookmarklets and the article details some of my favourites and demonstrates some tricks for writing your own.
In the short time since I wrote the article I’ve come across a couple of new bookmarklets that deserve a mention. Mouseover DOM inspector allows you to inspect the structure of a page, showing a window with the element type and attributes for whatever is currently under your mouse pointer. Topographic page layout reveals the “depth” of elements on a page by changing their background colour - a useful alternative to tools that add borders to elements as borders can slightly alter a layout while background colour changes leave the shape of a page intact.
April 9th, 2004 at 4:00 pm
I wonder who first ceated the bookmarklets…
April 9th, 2004 at 5:08 pm
Yeah, million dollar question!! Bookmarklets have been around for quite a while but who implemented them first? Any answers Simon? :D
April 9th, 2004 at 5:16 pm
I’m not Simon, but Steve Kangas over at bookmarklets.com says that the original idea came from Netscape.
Simon, I noticed that your article doesn’t say anything about Safari. It can be worth pointing out that Safari has some oddities in how it handles bookmarklets (drat it!). I wrote an article about Safari bookmarklets in the March issue of Macworld magazine.
April 9th, 2004 at 6:37 pm
I haven’t the slightest idea. http://www.bookmarklets.com is the first site I ever saw that popularised them, but I don’t know if the author of the site “discovered” them. The real question is whether or not they were initially a deliberate browser feature. Did Netscape (I’m guessing NS was the first browser to support them as they created Javascript in the first place) deliberately allow bookmarks to contain Javascript, or was it a bug that was later cleverly exploited? I’d be interested to know the answer.
April 10th, 2004 at 1:12 am
And here it is; I emailed Brendan Eich and asked him:
April 10th, 2004 at 5:20 pm
That’s odd - I could have sworn Dori’s answer wasn’t there when I posted my last two comments. I think it’s because her comment was posted anonymously and went in to the moderation queue - by the time it had been moderated and appeared in its place on the thread I had posted two more responses.