Skip to content

Instantly share code, notes, and snippets.

/x

Created November 3, 2008 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/21802 to your computer and use it in GitHub Desktop.
Save anonymous/21802 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name: "ytmnd",
author: { name: "David Braun", email: "braunb4brain@yahoo.com"},
icon: "http://i257.photobucket.com/albums/hh207/BraunB4Brain/ytmnd.png",
contributors: ["David Braun"],
license: "MPL",
description: "Search ytmnd.com",
help: "Enter a search at ytmnd.com",
takes: {"search string": noun_arb_text},
preview: "Search all of ytmnd.com.",
execute: function( search_string ) {
var prefix_url = "http://www.ytmnd.com/search?q=";
var search_url = prefix_url + search_string.text;
Utils.openUrlInBrowser(search_url);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment