Operator 0.7a is available
Operator 0.7a is available. This is an alpha release. Really.
You probably won’t notice anything obvious that has changed, but under the covers, things are very different. Here’s a list of some of the changes:
- Complete rewrite of parser and actions system
- Experimental support for species and XFN (These probably won’t be in the official release)
- More complete support for hCard and hCalendar
- Exporting a contact or event now gives you the option to save it to disk
- You can choose to not remove duplicate microformats
- Various bug fixes
- Ability to drop in Brian Suda’s X2V transforms to compare results (More info on that later)
- REMOVED: Ability to have default handlers for a given microformats
The new actions system is in flux right now, so I’m not giving any detail on how to write to it yet. Old handlers will still work, so if you have those, just drop them in.
If you find bugs, please report them as comments to this post.
As per my social contract, all code has been run through JSLint and migration from three versions of Operator have been tested.
Enjoy.
Comments
Comment from aja
Date: February 16, 2007, 7:59 pm
FWIW, Operator 0.7a doesn’t work with trunk builds:
Error: Node cannot be used in a document other than the one in which it was created = NS_ERROR_DOM_WRONG_DOCUMENT_ERR
Source file: chrome://operator/content/ufjs/ufJS.js
Line: 70
which is:
var xpathResult = document.evaluate(xpathExpression, rootElement, null, 0, null);
0.6.2 worked okay with trunk builds.
Comment from mkaply
Date: February 16, 2007, 10:31 pm
aja:
I think I fixed this. I wasn’t doing a good job figuring out the owner document to run the xpath on.
Pingback from YashLabs » Blog Archive » Montreal Linux User Group Meeting recap
Date: February 24, 2007, 11:37 am
[…] I told him about Operator, a Firefox extension which helps work with microformats where they are available. […]
Comment from Andy Mabbett
Date: February 28, 2007, 2:07 pm
Here’s some test data for the “species” microformat http://www.westmidlandbirdclub.com/records/lists-2004uf.htm I’ll be adding more shortly.
Comment from Ben O’Neill
Date: March 7, 2007, 10:49 am
I’ve not had a chance to test Operator 0.7a, but the version I’m using (0.6.2) seems to ignore the apostrophe in my name (O’Neill) when exporting.
Comment from jigar
Date: March 8, 2007, 11:32 pm
I have installed this on FF2.0.0.2. But since it involves parsing of content, switching tabs sometimes very slow…Especially on Wordpress blog where there are too many tabs. Can’t we have something like caching or limiting parsing to a smaller number of tags ?
Comment from Sam Adams
Date: March 9, 2007, 4:08 pm
Tried to install Operator, but Firefox complained it was not a valid extension format -207
Comment from mkaply
Date: March 9, 2007, 9:41 pm
jigar:
Actually, it’s not the parsing that was causing the slowdown, it’s the XUL. I’ve fixed this in my build and it will be in 0.7. Displaying a page with 500+ microformats went from 18 seconds down to less than 2
Comment from mkaply
Date: March 9, 2007, 9:42 pm
Sam Adams
That’s really strange. Can you try downloading it again?
Or installing from addons.mozilla.org?
Pingback from Mídia Digital » Blog Archive » Firefox ajudando os desenvolvedores Web
Date: March 16, 2007, 1:19 pm
[…] Operator - Extensão que detecta várias funções dos Microformats (abordaremos este assunto à seguir). É adicionada uma barra, na parte superior do navegador, dando opções para salvar o contato de determinado site, se possuir hCard (como estamos fazendo na seção “Equipe” do site da Mídia Digital), adicionar eventos ao seu Google Calendar através do hCalendar (como estamos fazendo no site do Shopping Estação), além de detectar tags e disponibilizar opções de buscá-las no Flickr, del.icio.us e Technorati. […]
Comment from Pontus
Date: March 19, 2007, 6:28 am
Hi, i can’t get Operator .6.x or .7.x to work on html pages(tested geo and rel tag). Do Operator find microsummaries on html pages or is it a xhtml-thingy only? Does the parsing of content work with unvalidated html?
Tested to put this on my site:
tech
Comment from mkaply
Date: March 19, 2007, 7:53 am
Pontus
Can you give me an example page? Operator should work on microformats on any page, XHTML or HTML.
Comment from Pontus
Date: March 19, 2007, 10:30 am
Well, I’m just learning so I may have used the microsummaries wrongly but, http://www.roligasidor.se/internetkultur.php (my page), line 58 have one rel-tag. Have tested the rel and geo but I dont get anything to work.
(The page is HTML 4.01 Transitional, only errors on the page is a non-SGML character and some missing alt-tags.)
Comment from mkaply
Date: March 19, 2007, 2:34 pm
Pontus:
Some of your rel= work. The other rel= problem are because you have put the rel= on a tag that is not an anchor
My suggestion is that you turn on debug mode in Operator. It should show you some of the problems.
I couldn’t find the geo on this page. Was it here?
Comment from Pontus
Date: March 20, 2007, 10:33 am
Hehe, stupid me. When the rel-tag at anchors didnt work i added the rel-tag to the div just to test and forgot to remove ‘em. Thank you very much for the help.
But should one wrongly placed microformat-tag break all the others?
Pingback from The Montreal Tech League » Blog Archive » Packed week in Montreal’s Tech Scene
Date: March 25, 2007, 3:48 pm
[…] If you’re an astute geek or tech-oriented business person who reads my personal blog at YashLabs, you are most probably already using FireFox and have installed the Operator plugin, which will enable you to easily add these events into your online calendar. All open-source and free technologies. […]
Comment from jigar
Date: March 29, 2007, 6:39 am
mike:
I was experimenting with 7a. Just go to this blog and observe tab switching time. Its significant.
http://ketan.padegaonkar.name/
Can we include some logic to remove duplicate tags ? Ithink that can solve this problem.
Comment from mkaply
Date: March 29, 2007, 8:15 am
jigar:
Things are much better with my new build.
And actually, removing duplicate entries makes things much worse.
On your page, you have 330 tags. If I remove the true duplicates (that is, not just the text duplicates, but the actual tag, including the URL) that takes it down to 273. (and affects page load performance a bit)
I’ve been pondering removing duplicate tag names (not just duplicate tags), but I believe it will actually make the problem worse…
Pingback from YashLabs » Blog Archive » DemoCampMontreal2 - Thu March 29th - SAT
Date: April 2, 2007, 6:14 pm
[…] —- If you’re an astute geek or tech-oriented business person who reads my personal blog at YashLabs, you are most probably already using FireFox and have installed the Operator plugin, which will enable you to easily add these events into your online calendar. All are open-source and free technologies. […]
Comment from Virginia
Date: April 8, 2007, 12:12 pm
The new version seems to be missing hReview as an item in the tool bar. It still shows up in the options as one of the microformats, but is no longer in the toolbar.
Comment from mkaply
Date: April 10, 2007, 11:40 am
hReview is now a user script. It can be downloaded at:

Write a comment