Created
March 3, 2012 03:32
-
-
Save serian/1964151 to your computer and use it in GitHub Desktop.
firefox tombloo 画像 検索
This file contains hidden or 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
//二次元画像詳細検索(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