Skip to content

Instantly share code, notes, and snippets.

@yoshimov
Created November 26, 2008 02:09
Show Gist options
  • Save yoshimov/29238 to your computer and use it in GitHub Desktop.
Save yoshimov/29238 to your computer and use it in GitHub Desktop.
Get Web Gyotaku from Ubiquity
CmdUtils.CreateCommand({
names: ["gyotaku", "get gyotaku"],
description: "Get Web Gyotaku.",
icon: "http://megalodon.jp/favicon.ico",
homepage: "http://megalodon.jp/",
author: { name: "Yoshimov", email: "yoshimov@pobox.com"},
preview: "Get Web Gyotaku",
execute: function(){
var document = CmdUtils.getDocument();
var addr = 'http://megalodon.jp/?url=' +
encodeURIComponent(document.location.href);
Utils.openUrlInBrowser(addr);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment