Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* 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
You can’t perform that action at this time.