ubiquity: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
Line 21: Line 21:
* Microformats extraction commands available at http://transformr.co.uk/
* Microformats extraction commands available at http://transformr.co.uk/
*#commands:  
*#commands:  
*#* get-atom from [[hatom|hAtom]]
*#* <code>get-atom</code> from [[hatom|hAtom]]
*#* get-vcard from [[hcard|hCard]]  
*#* <code>get-vcard</code> from [[hcard|hCard]]  
*#* get-webcal from [[hcalendar|hCalendar]]
*#* <code>get-webcal</code> from [[hcalendar|hCalendar]]
*#* get-podcast from [[haudio|hAudio]]
*#* <code>get-podcast</code> from [[haudio|hAudio]]


* Microformats Detection command available at  http://srv.buzzword.org.uk
* Microformats Detection command available at  http://srv.buzzword.org.uk

Revision as of 18:01, 8 September 2008

Ubiquity Commands

What is Ubiquity

Ubiquity is a Firefox 3 plugin that enables the user to interact with websites and services using simple keyboard commands.

Below is a list of Commands in the wild that support Microformats.

See user-interface for ways in which extensions could or do handle microformats.

Commands in the wild

Microformats Wiki Search

Microformats Extraction commands

Ubiquitiy and Firefox' Microformats-API

It is also possible to use the Firefox Microformats-API directly (with Ubiquity).

Here is a little code snippet:

Components.utils.import("resource://gre/modules/Microformats.js");
CmdUtils.CreateCommand({
  name: "count-hcards",
  execute: function() {
    var doc = Application.activeWindow.activeTab.document;	
    var uFcount = Microformats.count('hCard', doc);
    displayMessage( uFcount );
  }
})

See also