Created
June 1, 2009 16:53
-
-
Save arvizard/121595 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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