Created
May 7, 2009 09:03
Simple Yandex image search command
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
/* This is the Yandex image search command. */ | |
CmdUtils.CreateCommand({ | |
name: "ya-image", | |
takes: {"text": noun_arb_text}, | |
icon: "http://images.yandex.ru/favicon.ico", | |
homepage: "http://images.yandex.ru", | |
author: {name: "Alexey Fedoseev", email: "aleksey@fedoseev.net"}, | |
license: "GPL", | |
description: "Yandex images search", | |
execute: function(input) { | |
var location = input.text; | |
var url = "http://images.yandex.ru/yandsearch?text="; | |
url += encodeURIComponent(location); | |
Utils.openUrlInBrowser( url ); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment