Skip to content

Instantly share code, notes, and snippets.

@958
Created June 16, 2011 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 958/1028699 to your computer and use it in GitHub Desktop.
Save 958/1028699 to your computer and use it in GitHub Desktop.
[keysnail]HoK拡張ヒントモードから画像でgoogle画像検索
plugins.options['hok.actions'] = [
[':',
'Google image search',
function(e) {
if (e.src) {
let url = 'http://www.google.com/searchbyimage?image_url=' + encodeURIComponent(e.src);
openUILinkIn(url, 'tab');
}
},
false, false, 'img'],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment