Skip to content

Instantly share code, notes, and snippets.

@serian
Created March 3, 2012 03:32
Show Gist options
  • Save serian/1964151 to your computer and use it in GitHub Desktop.
Save serian/1964151 to your computer and use it in GitHub Desktop.
firefox tombloo 画像 検索
//二次元画像詳細検索(http://www.ascii2d.net/imagesearch)を利用するtomblooパッチ
//action
//ネット上にあるものだけ
// 一瞬遅れるのは仕様
Tombloo.Service.actions.register({
name : 'ascii2d',
type : 'context',
icon : 'http://www.ascii2d.net/favicon.ico',
check : function(ctx){
return ctx.onImage;
},
execute : function(ctx){
return request('http://www.ascii2d.net/imagesearch/search', {
sendContent : {uri : ctx.target.src}})
.addCallback(function(res){
addTab(res.channel.URI.asciiSpec);});
}
}, '----');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment