iPhone Bookmarklets

Well, it was worth a shot — you can embed an entire page into a bookmark using a base64 encoded data URI. That’s cool, because then you don’t need to use the internet to go grab the page contents (it’s in the bookmark itself!) even if a few things don’t work (like in-page anchors).

You can see an example here: The Lodger bookmarklet. Or you can select “iPhone Bookmarklet” from the Download menu on any title detail page.

The lack of anchors makes most pages pretty unwieldy though, since you can’t save your place within a large HTML document and you can’t jump to a particular chapter. The bookmarklet also takes up about 33% more memory than the plain HTML, too, thanks to base64 encoding.

Perhaps I’ll look into creating a link that doesn’t use the base64 encoding, but I’ve had enough fun for one day. Go ahead and try the “iPhone Bookmarklet” option and send your suggestions to me!