« Home | Operator Add-on - Microformats get useful » | My OpenID Speech - now on Google Video » | OpenID Speech at Webtuesday Zurich » | Howto: Secure Rails with OpenID Authentication » | Howto: Update Rails to 1.2 RC1 on Locomotive » | Webtuesday: OpenID - distributed authentication » | California drives Prius » | Microformats Speech at Barcamp Zurich » | Comdays: Parteiische Medien as Nährboden für Polit... » | Comdays: Politik und die Blogosphere »

Operator Add-on - Add custom actions

The Microformats Add-on for Firefox - Operator - already provides built-in integration with widely used services from Google and Yahoo.
Mike has a brief post explaining the extensibility via custom JS scripts.

Summary:
  • Get the handler-example.js file from the Operator extension directory in your Firefox profile.
  • Create a new folder called "microformats" in the root of your profile directory (on Mac that is: Library > Application Support > Firefox > Profiles > %profileid%.default).
  • Edit the example JS to use your site and copy it into the new Microformats folder
  • restart Firefox.
A great way to learn the possibility of the JavaScript API provided by the add-on is to unpack the operator.jar (copy and rename to .zip for easy extraction). You find the operator.jar in the chrome directory of the extension folder in the Firefox profile. Once unzipped you find a bunch of JS files in the content/microformats folder that contain the built-in implementations.

Learning by Example until there is a proper documentation ;-) (maybe there is one - but I could not find it)

Update: Quickly hacked a script to look-up addresses and people in local.ch - download the Operator handler script here (use "Save Link as..." in the context menu).

Tags:

Links to this post

Create a Link