Difference between revisions of "Making an OpenStreetMap handler for Operator"

From rukapedia
Jump to: navigation, search
 
Line 1: Line 1:
[http://www.fourmilab.ch/webtools/base64/ base64]
+
The [http://www.kaply.com/weblog/category/operator/ Operator] extension for Firefox is a nifty tool for exploring the nascent world of [http://www.microformats.org/ microformats].  After [http://ruk.ca/article/4048 adding some microformats to my website] my next task was to try to develop a new "handler" for the extension, something that's [https://addons.mozilla.org/firefox/4106/ alluded to here] and [http://www.kaply.com/weblog/2006/12/07/hello-world/ explained more fully here].
 +
 
 +
==Looking Under The Hood of Operator==
 +
 
 +
I'm new the world of Firefox extensions and "jar" files and the like, so it took me a little while to figure out how to take a look under the hood of Operator:
 +
 
 +
* Navigate to your Firefox Profile directory; on my Mac this was under:
 +
 
 +
<pre>
 +
~/Library/Application Support/Firefox/Profiles
 +
</pre>
 +
 
 +
* In the '''extensions''' directory, look inside the directory somewhat confusingly named:
 +
 
 +
<pre>
 +
{95C9A302-8557-4052-91B7-2BB6BA33C885}
 +
</pre>
 +
 
 +
* Make a copy of the file called '''operator.jar''' you find there, but call the copy '''operator.zip'''
 +
* Use your favourite unzipping utility to "unzip" the file.
 +
* The result will be Operator in all its glory; the heart of the matter seems to be '''microformats.js'''

Revision as of 09:43, 13 February 2007

The Operator extension for Firefox is a nifty tool for exploring the nascent world of microformats. After adding some microformats to my website my next task was to try to develop a new "handler" for the extension, something that's alluded to here and explained more fully here.

Looking Under The Hood of Operator

I'm new the world of Firefox extensions and "jar" files and the like, so it took me a little while to figure out how to take a look under the hood of Operator:

  • Navigate to your Firefox Profile directory; on my Mac this was under:
~/Library/Application Support/Firefox/Profiles
  • In the extensions directory, look inside the directory somewhat confusingly named:
{95C9A302-8557-4052-91B7-2BB6BA33C885}
  • Make a copy of the file called operator.jar you find there, but call the copy operator.zip
  • Use your favourite unzipping utility to "unzip" the file.
  • The result will be Operator in all its glory; the heart of the matter seems to be microformats.js