Operator User Scripts
Articles
- Creating a Microformat Action User Script (Basic)
- Creating a Microformat Action User Script (Advanced)
- Creating a Microformat Action User Script that uses POST
Operator 0.8 User scripts
To use these user scripts with Operator, you must download them and then use Options->User Scripts to add them to Operator. After adding them, restart the browser.
- Actions
- blogmarks.js - “Find bookmarks on BlogMarks” action for searching blogmarks.net. Works with the tag microformat. (Last updated May 31, 2007)
- bluetooth.js (Mac only) - “Send to Bluetooth Device” action for sending ICS and VCF files via Bluetooth. Works with the hCard and hCalendar microformats. (Last updated May 31, 2007)
- corkd.js - “Find wines on Cork’d” action for searching corkd.com. Only works on corkd.com. Works with the tag microformat. (Last updated May 31, 2007)
- goto_url.js (updated 7/3/2007 for Operator 0.8b)- “Go to web page” action for opening web pages. Works with the hCard, hCalendar, hAtom (hEntry) and XFN microformats. (Last updated November 8, 2007)
- liveclipboard.js - action for copying microformats to Live Clipboard. Works with the hCard and hCalendar microformats. (Last updated May 31, 2007)
- google_maps_rdfa.js - action for searching Google Maps when latitude/longitude is specified via any RDF ontology (RDFa, eRDF). This is an example of how to extend an existing action to support RDF. (Last updated September 25, 2007)
- export_vcard_21.js - action that exports vCards at the 2.1 level. This is especially useful for applications like Palm Desktop which do not work with the vCard 3.0 specification. (Last updated September 25, 2007)
- Microformats
- hAtom.js - the hAtom microformat. This microformat is actually represented in Operator as two “subformats,” hEntry and hFeed. This file also adds functionality to the “Bookmark with Firefox” action to include bookmarking hEntrys. (Last updated December 3, 2007)
- hResume.js - the hResume microformat. This file also adds functionality to the “Bookmark with Firefox” action to include bookmarking hResume, as well as to the Yahoo! and Google Search actions to include searching for the contact. (Last updated February 15, 2008)
- hReview.js - the hReview microformat. This file also adds functionality to the “Bookmark with Firefox” action to include bookmarking hResume, as well as to the Yahoo! and Google Search actions to include searching for the item. (Last updated December 3, 2007)
- XFN.js - the XFN microformat. This file is not very useful unless you also install the “Go to web page” action. (Last updated August 22, 2007)
- license.js - the license microformat. This file also adds an action for viewing the license. (Last updated December 3, 2007)
- Experimental
- GRDDL.js - GRDDL support. This file adds a new data format for GRDDL and adds an “Extract RDF” action to transform a page with GRDDL into RDF. (Last updated December 3, 2007)
- species.js - the proposed species microformat. This file also adds the various search actions for species. (Last updated December 31, 2007)
- Third Party
- Søren Johannessen has updated his actions for the Danish Blogosphere for Operator 0.8. You can read about them and download them at microformats.dk.
- Pelle Wessman has updated his actions for the Swedish Blogosphere for Operator 0.8. You can read about them and download them at http://pelle.vox.nu/.
- Charl van Niekerk has created actions for the African Blogosphere for Operator 0.8. You can read about them and download them at http://blog.charlvn.za.net/.
- Tony Tones Farndon has created actions for Tagzania. You can read about them and download them at http://www.tagzania.com/doc/about/tools/microformats
- The Minimap Addon gives you a suite of built-in maps and mapping tools for your web browser. And it also supports integration with Operator.
- Egon Willighagen is using RDFa combined with an Operator action to allow for searching PubChem from the Chemical Blogspace. More information is available in his post.
- Rosie Morales from MITRE has created actions based on the Simile project:
- The Simile Timeline action (Updated 8/5/2007) is an action that acts on all events on a web page. It creates a local file that contains a Simile Timeline representation of the data and then displays it.
- The Exhibit Timeline action is an action that acts on all events on a web page. It creates a local file that contains a Exhibit Timeline representation of the data and then displays it.
- The Exhibit action is an action that acts on all contacts on a web page or one contact on a web page. It creates a local file that contains a Exhibit representation of the data and then displays it.
- Dan Noble has created an action that extracts hCard and hCalendar items from a page and plots them in Google Earth. It’s available here.
- Thorsten Panknin has created an action for tags that connects with the Mister Wong social bookmarking site. What is interesting about this action is that it connects to different language versions of the site based on your browser language. The script is available here.
- Matthias Pfefferle has created actions for the German Blogosphere for Operator 0.8. You can read about them and download them at http://notizblog.org/.
- Tom Morris has created an action for Skype for Operator 0.8. You can read about it and download it at http://tommorris.org/blog/.
- Gautier Poupeau has created RDF actions for Dublin core encoded ISBNs and for SIOC/delicious integration.. You can read about it and download it at http://www.lespetitescases.net/.
- NEW - Joaquín Moriche has created an action that displays all hCard addresses on a page on one Google map. He did this by creating a web page that he passes all the addresses to. You can download it here.
Comments
Comment from markus
Date: April 8, 2007, 9:00 am
Is there a problem in the hReview.js? It doesn’t show the microformats on my test-site. I copied the examples form microformats.com. But the new Operator doesn’t catch them. Some other sites (linked in the microformats-wiki) don’t work also. I don’t know JavaScript, so I haven’t an idea.
Comment from mkaply
Date: April 9, 2007, 6:04 am
Can you give me an example site? It seems to be working for me. I test at corkd.com. For example:
Comment from markus
Date: April 10, 2007, 11:02 am
On my site, I tried to integrate an example. ( http://www.markusbaumi.ch/tipps/thunderbird-erweiterungen.html ) But it doesn’t work with the new Operator. Maybe, there is an error in the code?!
I also tested the examples form http://microformats.org/wiki/hreview . The “Product” and “More review” aren’t working. The Tails-extension and the old Operator show them. Is there an error in die website-code?
Comment from mkaply
Date: April 10, 2007, 11:40 am
Yes, there is a problem in hReview.js. I just fixed it. Sorry about that. I should have caught that.
Comment from markus
Date: April 10, 2007, 10:30 pm
Thanks for your support. Now it’s going!
Comment from Stephen Paul Weber
Date: April 16, 2007, 3:03 pm
It would be nice if there were some indication in the post or the code as to which actions work with / make sense with the uF userscripts. If I install the XFN script, what do I get? Microformats is the data, but actions are the goal of this…
Comment from Keith Alexander
Date: May 1, 2007, 12:48 am
A user script for running pages through the http://triplr.org/ web service
Comment from Charles Nepote
Date: June 15, 2007, 12:20 am
A user script to launch Foaf explorer when RDFa is used to specify a person with a rdfs:isDefinedBy property.
http://rn7.net/b/amusons-nous-avec-RDFa-et-Operator
Demo page :
http://rn7.net/b/Charles-Nepote
Comment from Luistxo Fernandez
Date: July 4, 2007, 8:49 am
The Tagzania userscript for Operator 0.8 available zipped here. Extends the capability of the adr and geo microformats detected by Operator. Read the documentation.
This tool has been created by a geohacker friend of Tagzania, Tony Farndon.
Comment from mkaply
Date: July 20, 2007, 1:18 pm
User scripts for a delicious-like service (in basque) called bildu.net
http://www.mundurat.net/kaxero/blog/2007/07/05/mikroformatuak-informazio-handia/
Comment from Andy Mabbett
Date: August 16, 2007, 5:08 am
In lieu of a bluetooth application for Windows, what about a Semacode generator?
Comment from Stephen Paul Weber
Date: August 22, 2007, 8:22 am
[Ed: I consolidated these all into one comment so I could reply]
The hAtom script seems busted. It shows nothing on either my blog or microformats.org, both of which are hAtom.
Oh… you have to restart firefox…
go to webpage needs an in new tab counterpart…
On my blog (http://singpolyma.net/tech) the hEntries all show up with a 0 at the end of their title…
Can’t I display ALL microformats? Pleease? It won’t let me add new ones to the list, just change existing items…
XFN should support bookmark. It would be cool if icons for the different relationships were put next to XFN links too (or just the rel contents put in the title or something…)
Comment from mkaply
Date: August 22, 2007, 10:47 am
To open web pages in a new tab, you can Ctrl Click or use the middle mouse button. This is consistent with how Firefox bookmarks in the chrome work today.
I’ll take a look at the the hEntry issue.
As far as the “ALL microformats” thing, I’m not sure what you mean. The only way to know a microformat is to install support for it. So if you can’t add new ones to the list, it means there are no more that Operator understands. Unless there is a bug ![]()
I’ll add bookmarking support for XFN. As far as icons go, do you mean in the menu? Or when it is added as a bookmark? And when I bookmark it, should it book mark as:
Joe Schmo (friend, colleague)
Thanks
Comment from kl
Date: August 29, 2007, 11:39 am
Hey Mike, great addon.
I’ve been trying to implement rel-tag support for my blog, but redirection isn’t available to me, thus my rel-tag hrefs look something like this:
rel=”tag” href=”?tag=foo”
Instead of
rel=”tag” href=”http://page.com/tag/foo”
as required by the rel-tag spec.
However, checking the sites listed under ‘Examples in the wild’^1, it would appear that a number of sites (e.g. MyOpera^2) implement rel-tag in the manner I’m forced to aswell.
Would you consider adjusting rel-tag parsing in Operator so as to pick up non-spec rel-tags?
Thanks, kl.
1: http://microformats.org/wiki/rel-tag
2: http://my.opera.com/community/blogs/
Comment from mkaply
Date: August 31, 2007, 12:36 pm
kl:
This debate rages in the microformat community ![]()
The problem is that basically there are so many ways of doing tags out there, that I can’t really determine how to parse out a tag from a specific URL.
If the tag is invalid, I could probably do something extra, but I’m not sure if that is the “right thing”
Can you give me a URL to your blog? I’m curious if your links show up as invalid, or we just think the tag is something else.
Comment from david
Date: October 11, 2007, 6:50 am
could you elaborate a little more on how RDFa / eRDF is supported? Not really picking up much of it right now when browsing RDFe examples.
Also the add new dataformat button is always grayed out.
Comment from mkaply
Date: October 16, 2007, 9:27 am
david:
Can you give me a page to try out?
It should at least light up the “Resource” button.
Comment from david
Date: October 22, 2007, 7:30 am
My bad: it does light up the Resource button,
example page : http://www.w3.org/2001/sw/BestPractices/HTML/rdfa-bookmarklet/bibtex-rdfa-example.html
Comment from david
Date: November 5, 2007, 7:38 am
It does seem like ‘instanceof’ (RDFa) is not recognized (not present in resources): Tried it out locally, ‘about’ is picked up, but not ‘instanceof’. See http://www.w3.org/TR/xhtml-rdfa-primer/ examples.
(example from that site: …
)
Comment from mkaply
Date: November 5, 2007, 10:14 am
david:
This was written to the earlier spec that didn’t use instanceof. The code is in the process of being rewritten.
Comment from Daniel O’Connor
Date: November 13, 2007, 10:03 pm
https://vx.valex.com.au/operator/
User scripts for…
* Find people on whitepages.com.au
* Find businesses on yellowpages.com.au
* Find properties on real estate sites
Comment from Sriram
Date: February 8, 2008, 2:21 pm
A user script to get directions to attend an event
http://sriramnarayan.50webs.com/directions_on_googleMaps.html
Try it out on http://microformats.org/wiki/hcalendar#Example
Give start address as SFO airport, CA
Comment from Sam Wilson
Date: February 14, 2008, 10:26 pm
This certainly is a lovely firefox addon; thank you for developing it.
One feature that might be useful is some way for sites to advertise to Operator that they offer userscripts for download. Rather like the search engine box lights up when a site offers a search thingy. I think it would be great if a site could offer both microformatted data, and the actions to do stuff with that data.
Comment from adrianbj
Date: February 25, 2008, 3:02 am
There seems to be a problem with 0.9b and full dates - I thought it was just my coding, but noticed that you can’t export the second example at: http://microformats.org/wiki/hcalendar
which uses full date format. The first example can be exported, but it uses a condensed date format.
I am using FF 3.0b3 - not sure if that would matter or not.
Thanks
Comment from mkaply
Date: February 25, 2008, 11:48 am
adrianbj: thanks for the bug reporting. It’s definitely a problem with my FF microformats code. I already have a fix.
Thanks
Comment from Pelle Wessman
Date: March 29, 2008, 8:53 am
I’ve reuploaded my script for the swedish blogosphere on my company site since my webhost killed my personal blog. Can you update the link to the new location? It’s http://kodfabrik.se/userscripts/

Write a comment