Skip to content

Instantly share code, notes, and snippets.

@patcito
Created October 10, 2008 03:31
Show Gist options
  • Save patcito/15981 to your computer and use it in GitHub Desktop.
Save patcito/15981 to your computer and use it in GitHub Desktop.
makeSearchCommand({
name: "dict",
author: {name: "Jonathan E. Magen", homepage: "http://yonkeltron.com"},
license: "GPL",
url: "http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query={QUERY}",
icon: "http://www.dict.org/favicon.ico",
description: "Retrieve word definitions from the <a href=\"http://dict.org\">Dict.org DICT server</a>",
preview: function( pblock, directObject )
{
if (!directObject.text || directObject.text.length < 1) {
pblock.innerHTML = "Retrieves word definitions";
return;
}
pblock.innerHTML = "Retrieve word definitions for <i>" + directObject.text + "</i>";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment