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.

7 thoughts on “Greasemonkey and Microformats

  1. Greasemonkey & microformats: Getting started

    This post presents a ten line javascript that can be used to identify and process virtually any microformatted content. The script uses the Firefox web browser’s greasemonkey framework. The script and the general capabilities of modern web browsers s…

  2. So, I installed the script and when I click on one of the hCalendar links on the pages you recommended it opened a dialogue box which asked me what program to use, or to save it to disk. I choose iCal (on MacOSX10.3) and it created a whole new calendar called X2V.
    I’m a little at a loss as to what to do? Thanks

Leave a Reply