Main
Latest
- iJol.coza
- Semacode Uses
- Stormhoek in George Update
- Muti's Jabber Integration
- National Accessibility Portal
- Sanctuary for All
- Garden Route Stormhoek Geek Dinner June 2007 Updat...
- Garden Route Freedom Toaster Party
- Speakers for Garden Route Geek Dinner
- CentOS, FreeBSD, ISOs & Freedom Toaster
Archives
- June 2004
- July 2004
- August 2004
- September 2004
- October 2004
- November 2004
- December 2004
- January 2005
- February 2005
- March 2005
- April 2005
- May 2005
- June 2005
- July 2005
- August 2005
- September 2005
- October 2005
- November 2005
- December 2005
- January 2006
- February 2006
- March 2006
- April 2006
- May 2006
- June 2006
- July 2006
- August 2006
- September 2006
- November 2006
- December 2006
- January 2007
- February 2007
- March 2007
- April 2007
- May 2007
- June 2007
- July 2007
- August 2007
- September 2007
- October 2007
- November 2007
- December 2007
- January 2008
- February 2008
- March 2008
- April 2008
- May 2008
- June 2008
- July 2008
- August 2008
- September 2008
- October 2008
- November 2008
- December 2008
- January 2009
Operator AMA User Scripts
Yesterday I tried out the new Firefox Operator 0.8a extension. Then I took a look at the Operator User Scripts page. I saw the corkd script and thought that it would be trivial to create similar scripts for Afrigator, Amatomu and Muti (in alphabetical order).
So I hacked away and came up with these three. For Afrigator:
var afrigator_search_tags = {
description: "Find posts on Afrigator",
shortDescription: "Afrigator",
icon: "http://afrigator.com/favicon.ico",
scope: {
semantic: {
"tag" : "tag"
},
url: "http://afrigator.com"
},
doAction: function(semanticObject, semanticObjectType) {
if (semanticObject.tag) {
return("http://afrigator.com/tag/" + encodeURIComponent(semanticObject.tag));
}
}
};
SemanticActions.add("afrigator_search_tags", afrigator_search_tags);
For Amatomu:
var amatomu_search_tags = {
description: "Find posts on Amatomu",
shortDescription: "Amatomu",
icon: "http://amatomu.com/favicon.ico",
scope: {
semantic: {
"tag" : "tag"
},
url: "http://amatomu.com"
},
doAction: function(semanticObject, semanticObjectType) {
if (semanticObject.tag) {
return("http://amatomu.com/tag.php?tag=" + encodeURIComponent(semanticObject.tag));
}
}
};
SemanticActions.add("amatomu_search_tags", amatomu_search_tags);
And finally, for Muti:
var muti_search_tags = {
description: "Find links on Muti",
shortDescription: "Muti",
icon: "http://muti.co.za/images/favicon.ico",
scope: {
semantic: {
"tag" : "tag"
},
url: "http://muti.co.za"
},
doAction: function(semanticObject, semanticObjectType) {
if (semanticObject.tag) {
return("http://muti.co.za/hot?tags=" + encodeURIComponent(semanticObject.tag));
}
}
};
SemanticActions.add("muti_search_tags", muti_search_tags);
Now, you probably need some instructions for installation. Took me a while to figure this out myself.
- Save any or all of the above code snippets, each to their own file. For example, you can save the Muti script to
muti.jsanywhere on your computer. You can probably put them all in the same file if you like, haven't tried that myself yet. - Open Operator's options window.
- Go to the "User Scripts" tab.
- Add each of your scripts by clicking on the "New" button and selecting a script.
- Restart Firefox.
- Go back to the options window.
- Go to the "Actions" tab.
- Add each of the services by clicking on "New" and selecting a service from the drop-down list.
- You will probably have to do some reordering and/or deleting as well while you're in the "Actions" tab. Click "Ok" when you're done and browse to any web page that uses rel-tag.
Enjoy! If you have any problems or questions, please do not hesitate to contact me or leave a comment. Thanks!
Copyright © 2004-2009 Charl van Niekerk. All articles are released under the Creative Commons Attribution 2.5 South Africa licence, unless where otherwise stated.


2 Comments
Comment by
Neil Blakey-Milner on Friday, June 08, 2007 3:45:00 PM
Those user scripts look quite neat - would be easy to "send" an event to your own personal calendar server, for example.
Comment by
Charl van Niekerk on Wednesday, June 13, 2007 10:22:00 AM
Yes and what about being able to submit events to iJol!
Post a Comment