Search words in Wordnik from Ubiquity

For people who have installed Ubiquity from Mozilla Labs, here’s a user script that enables you to quickly search for words in Wordnik:

makeSearchCommand({
  name: "Wordnik",
  url: "http://wordnik.com/{QUERY}",
  icon: "http://wordnik.com/media/img/wordnik.ico",
  description: "Searches Wordnik for your words.",
  preview: function(pblock, directObject) {
    var searchTerm = directObject.text;
    var pTemplate = "Searches Wordnik for <b>${query}</b>";
    var pData = {query: searchTerm};
    pblock.innerHTML = CmdUtils.renderTemplate(pTemplate, pData);
  }
});

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.

Post a Comment

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

*
*