Skip to content

Instantly share code, notes, and snippets.

@tcoopman
Created January 10, 2009 13:35
Show Gist options
  • Save tcoopman/45454 to your computer and use it in GitHub Desktop.
Save tcoopman/45454 to your computer and use it in GitHub Desktop.
CmdUtils.makeSearchCommand({
name: "gdefine",
author: { name: "Thomas Coopman" },
license: "GPL",
url: "http://www.google.com/search?q=define:{QUERY}",
icon: "http://www.google.com/favicon.ico",
description: "Searches Google Define for your words.",
preview: function(pblock, directObject) {
msg = 'Searches Google define for "<i>${query}</i>"';
pblock.innerHTML = CmdUtils.renderTemplate(msg, {query: directObject.text});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment