Skip to content

Instantly share code, notes, and snippets.

@cthrax
Created July 10, 2009 15:07

Revisions

  1. cthrax created this gist Jul 10, 2009.
    15 changes: 15 additions & 0 deletions x.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    /* command "define" */
    CmdUtils.makeSearchCommand({
    names: ["define"],
    icon: "http://dictionary1.classic.reference.com/favicon.ico",
    homepage: "http://dictionary.com",
    author: { name: "Myles Bostwick", email: "[email protected]"},
    license: "GPL",
    description: "Search Dictionary.com",
    help: "define: your word",
    url: "http://dictionary.reference.com/browse/{QUERY}",
    preview: function( pblock, args) {
    var preview = "<p>" + _("No Preview at this time.") + "</p>";
    pblock.innerHTML = preview;
    }
    });