Skip to content

Instantly share code, notes, and snippets.

@arvizard
Created June 1, 2009 16:53
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 arvizard/121595 to your computer and use it in GitHub Desktop.
Save arvizard/121595 to your computer and use it in GitHub Desktop.
/* Ubiquity command for bing.com ...My second script! Thanks to Bing.com */
CmdUtils.CreateCommand({
name: "bing",
homepage: "http://www.arvizardanimations.com/",
author: {name: "Aravind Kumar", email: "aravind@arvizardanimations.com"},
license: "GPL",
description: "Search using Bing",
help: "Type bing followed by the search term. For eg, to search for pizza, type 'bing pizza'.",
takes: {"Search term": /.*/},
preview: function(pblock, input) {
pblock.innerHTML = "Search for " + input.text + "</b>.";
},
execute: function(input) {
Utils.openUrlInBrowser("http://www.bing.com/search?q=" + input.text);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment