Ubiquity code for Jaiku search through Jaikungfu

For the Jaiku users who have installed Ubiquity from Mozilla Labs, here’s a user script that enables you to search Jaiku through Jaikungfu (please let me know if you have a suggestion for something shorter and easier to type!)

makeSearchCommand({
  name: "jaikungfu",
  url: "http://jaiku.lemonad.org/search?q={QUERY}",
  icon: "http://jaiku.lemonad.org/favicon.ico",
  description: "Jaikungfu search Jaiku.",
  preview: function(pBlock, directObj) {
    if (directObj.text)
      pBlock.innerHtml = "Searches " +
      "<a href=\"http://jaiku.com/\">Jaiku</a> for " +
      directObj.text +
      " (<a href=\"http://jaiku.lemonad.org/\">jaikungfu</a>)";
    else
      pBlock.innerHTML = "Searches " +
      "<a href=\"http://jaiku.com/\">Jaiku</a> "+
      "for the given words " +
      "(<a href=\"http://jaiku.lemonad.org/\">jaikungfu</a>)";
  }
});

Thanks to Håkan Kjellerstrand for teaching me the basics!

Update 2008-08-31: I’ve added Ubiquity meta information to this page so that you should see a Firefox bar across the top of the page asking you whether or not to install/subscribe to this script.

3 Comments

  1. Posted August 31, 2008 at 22:49 | Permalink

    Subscribed!

  2. Posted August 31, 2008 at 23:08 | Permalink

    @pean: Thanks! It’s likely that I add some more features later when I learn more about the Ubiquity framework :)

  3. Posted September 1, 2008 at 18:49 | Permalink

    Subscribed and works well, what more could you ask for? :)

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*