Greasemonkey and Microformats

I’ll pontificate on this later, here’s the short version. Some people include information about events in web pages so that if you have the right tools you can import them straight off the web to whatever calendar program you use. This format is called hCalendar.

I created a Greasemonkey user script that will find those hCalendar events and provide a link to import them into any calendar program that supports the iCalendar format (most notably Apple’s iCal and Mozilla’s Sunbird). What does this mean? Well any time you see an event on the web that has hCalendar information, you can click a link and it’ll be added to your calendar so you don’t have to copy the information by hand.

How do you get started?

  1. Install Firefox and the Greasemonkey extension
  2. Right-click on http://george.hotelling.net/projects/converthcal/converthcal.user.js and choose “Install user script…”
  3. Go to a page with hCalendar information (such as this one on Upcoming.org) and you’ll see a link to add the event to your calendar


This is possible thanks to Brian Suda’s X2V converter service. Suggestions welcome.

Update: Because Andy Hume keeps leaving comments asking for it I slapped together a version for hCard at http://george.hotelling.net/projects/converthcard/converthcard.user.js. Don’t say I never gave you nothing.

Oh, and if you’re looking to play with hCal, Les’s Greasemonkey script (and screencast video) is a great place to start.