iPod Touch Bookmarklets & Microformats

Although this is should be obvious, since the iPod Touch comes with Safari, I’ve found to my pleasure: you can run bookmarklets through Safari (mobile).

This means either I set up the bookmarklet on my desktop Safari and sync it across, or just spend a couple of minutes adding it manually.

I find bookmarklets useful for sites like Wikipedia and my del.icio.us links:

javascript:x=prompt('Wiki');window.location='http://wikipedia.com/wiki/'+x
javascript:x=prompt('Tag');window.location='http://del.icio.us/remy.sharp/'+x

It also supports much more complicated bookmarklets, like my Microformats bookmarklet:

Microformats on my iPod Touch

Sadly, but as expected, importing the vCard doesn’t work :-( (certainly not on the iPod Touch – I’d be interested to hear what it does on an iPhone).

I also spotted the overflow style on the inner white div isn’t working on the iPod (a bit of debugging may fix that).

As I said in the description on Flickr above, it might be worth adding the option to expand out all details, and even detecting the iPhone/Touch and adding support for phone links.

3 Responses to “iPod Touch Bookmarklets & Microformats”

  1. :’(

    I couldn’t get it to work. I quadrupled checked my code and it’s still not working.

    Just to be sure: I’ve added the code as a bookmark, and swapped out ‘remy.sharp’ with my own del.icio.us user.

    The error that Safari Mobile outputs is: “Safari can’t open the page because the address is invalid.”

    Any clue as to what I might be doing wrong?

  2. @Marc – sorry if I wasn’t clear – did you prefix the address with javascript:?

    e.g.

    javascript:x=prompt('Wiki');window.location='http://wikipedia.com/wiki/'+x
  3. That was it! Thanks!

Leave a Reply
Not required

CODE: Please escape code and wrap in <pre><code>, doing so will automatically syntax highlight