Ubiquity
From Mibbit
learn about it: http://www.toolness.com/wp/?p=54 ... http://labs.mozilla.com/2008/08/introducing-ubiquity/
The basic way to use this command is to put "mibbit irc://irc.server.name/channel" in the Ubiquity input space.
Code
Note: Do the command "command-editor" and place this in there (or later, there will be a link it's hosted at).
CmdUtils.CreateCommand({
name: "mibbit",
author: { name: "Havvy", email: "ryan.havvy@gmail.com"},
contributors: ["Blair McBride"],
license: "None",
description: "Takes you to the IRC Channel that is specified through Mibbit.",
help: "http://wiki.mibbit.com/index.php/Ubiquity",
takes: {"ircUrl": noun_arb_text},
execute: function(ircUrl) {
var unescapedURL = ircUrl.text;
/* If string doesn't start with a variation of IRC://, append it.*/
if (unescapedURL.toLowerCase().indexOf("irc://") != 0)
{
unescapedURL = "IRC://" + unescapedURL;
}
var escapedURL = encodeURIComponent(unescapedURL);
var mibbitURL = "http://mibbit.com/?url=" + escapedURL;
Utils.openUrlInBrowser(mibbitURL);
}
})
Note: Put suggestions in the WishList for other commands or to make that above command better. They go in the 'other' section.
