Operator User Scripts

Articles

Operator 0.9.X User scripts

ALL OF THESE SCRIPTS HAVE BEEN UPDATED TO WORK WITH THE LATEST OPERATOR! 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 hReview, as well as to the Yahoo! and Google Search actions to include searching for the item. (Last updated January 3, 2010)
    • 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)
    • hProduct.js – the hProduct microformat. This file also adds functionality to the “Bookmark with Firefox” action to include bookmarking hProduct, as well as to the Yahoo! and Google Search actions to include searching for the item. (Last updated October 14, 2009)
  • Experimental
    • GRDDL.jsGRDDL 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.

49 Responses to “Operator User Scripts”

  1. markus says:

    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.

  2. mkaply says:

    Can you give me an example site? It seems to be working for me. I test at corkd.com. For example:

    http://corkd.com/wine/view/9103

  3. markus says:

    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?

  4. mkaply says:

    Yes, there is a problem in hReview.js. I just fixed it. Sorry about that. I should have caught that.

  5. markus says:

    Thanks for your support. Now it’s going!

  6. 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…

  7. 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

  8. 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.

  9. mkaply says:

    User scripts for a delicious-like service (in basque) called bildu.net

    http://www.mundurat.net/kaxero/blog/2007/07/05/mikroformatuak-informazio-handia/

  10. Andy Mabbett says:

    In lieu of a bluetooth application for Windows, what about a Semacode generator?

  11. [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…)

  12. mkaply says:

    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

  13. kl says:

    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/

  14. mkaply says:

    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.

  15. david says:

    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.

  16. mkaply says:

    david:

    Can you give me a page to try out?

    It should at least light up the “Resource” button.

  17. david says:

    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

  18. david says:

    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: …
    )

  19. mkaply says:

    david:

    This was written to the earlier spec that didn’t use instanceof. The code is in the process of being rewritten.

  20. 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

  21. Sriram says:

    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

  22. Sam Wilson says:

    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.

  23. adrianbj says:

    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

  24. mkaply says:

    adrianbj: thanks for the bug reporting. It’s definitely a problem with my FF microformats code. I already have a fix.

    Thanks

  25. 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/

  26. Rich says:

    Sometimes the “New” button for the data formats is “greyed out” – just added the XFN.js script, after adding a new XFN format, the button is unclickable. If I delete XFN, and add GRDDL instead, then I can add XFN afterwards.

    Weird!

    I thought that this extension was going to become a core part of Firefox 3 – what happened?

  27. Andrew Woods says:

    Hey,

    Just wanted to say good job on the Operator Extension. I really like it. I do have one small request – could you add GMail support for the Contacts menu, since I’m a GMail user. I’m using version Operator 0.9.2

    Thanks in advance,

    Andrew

  28. [...] but was still a big issue – how to plug in new services. Currently Operator uses the concept of user scripts to allow the installation of additional microformats and connections to web services. [...]

  29. [...] Mac-Script findet man auf der Seite von Michael Kaply (direkter Link). “Send to Bluetooth Device” action for sending ICS and VCF files via Bluetooth. [...]

  30. [...] Operator UserScript to validate hCards via the hCard microformat [...]

  31. Lukas Vana says:

    Hello, I created script for Operator, which allows you add Location to Locify. For more informations about Locify please visit our site http://www.locify.com .
    Is it possible to add this script to list of userscripts? Thanks

  32. [...] it. It’s been available for over a year now and is mature and extensible through the use of user scripts.  It’s been developed by Michael Kaply, who works on web browsers for IBM and is responsible [...]

  33. [...] Michael Kaply为Firefox的附加组件Operator写了hAtom用户脚本。该脚本可以为hentry的出现添加书签功能 [...]

  34. [...] iCal events for adding to Outlook, google calendar or yahoo calendar. Whats really cool is that its actions are extensible and are called “user scripts”. You can write your own user scripts targetted at [...]

  35. [...] can act. (For more on Operator and its capabilities check out Mike’s page on it, including Operator User Scripts, which enable people to extend the functionality inside the plugin for existing microformats and [...]

  36. Gary says:

    Hi, I’ve got Operator 0.9.3 and I’m having real trouble getting it to detect hatom (hentry, hfeed) on sites that other tools can parse correctly – the Highlight bit seems to pick up on it, but the toolbar stays greyed out, and neither the address bar or status bar bits show it. Can’t seem to find a hatom.js version for Operator 0.9 either.

  37. FuN_ViT says:

    plz make hproduct format addon :-)

  38. Andy Mabbett says:

    Is anyone working on scripts for hProduct and hRecipe?

  39. I have written a user script for operator to use with Open streetmaps(http://www.openstreetmap.org/)
    You can read and download it from

    http://bhavesh.freeshell.org/blog/worklog/9011.html

  40. Ding says:

    I’m missing a userscript for the hMedia Microformat. Does it exist?

  41. Alexis says:

    Not sure this is the right place to ask this question. I’m currently getting events from Tripit into (an oldish version of) Lotus Notes by copying the vCard/iCalendar debug page into Lotus. Is there a way of automating this (copy the iCal into the clipboard, and maybe modify it a bit to remove the alarm)?

    Thanks
    Alexis

  42. [...] Kaply a créé un script utilisateur hAtom pour l’extension Operator de Firefox. Ce script ajoute une fonctionnalité supplémentaire de [...]

  43. I would like to have a script for Google Contact, is it possible?

  44. mudar says:

    I miss the hAtom entries (and feed), so I still use the 0.9.4.1 version… however, this remains a great addon ;-)

  45. [...] Kaply a créé un script utilisateur hAtom pour l’extension Operator de Firefox. Ce script ajoute une fonctionnalité supplémentaire de [...]

Leave a Reply