Skip to content

Instantly share code, notes, and snippets.

@dralex
Created May 7, 2009 09:03
Simple Yandex image search command
/* 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