Dear Lazyweb,
I’d like to open .ics calendar files, like those provided by Facebook’s “Export” button on an event, with Google Calendar. However, Google has not yet seen fit to provide a suitable URL for use with registerContentHandler(), as they have for Gmail with mailto: and registerProtocolHandler().
Please write a Jetpack or Greasemonkey script which does the following:
- Adds a “Register” button to the Google Calendar interface, which registers the “add event” web form URL as the handler, with a “icsfile=%s” parameter.
- Runs code on that form’s URL which detects the parameter, XMLHttpRequests the .ics file, parses it, fills in the fields on the form, and presses “Submit”.
For bonus points, reuse the JavaScript .ics file parser to do the same trick for Yahoo! and other web calendars.
Thanks,
Gerv