diff options
| author | Stephen Blott | 2017-09-30 08:02:10 +0100 |
|---|---|---|
| committer | Stephen Blott | 2017-09-30 08:02:10 +0100 |
| commit | 56c5ab637ffe888a48fb68a7536781f6400eb13a (patch) | |
| tree | 985c07abff75f4003127bcd85f76501c44f297da /background_scripts | |
| parent | 7376efbb11cd3a8b4f9844368f5b440db89821bd (diff) | |
| parent | 3b119c7de52af858a59db8ed786b27b7d215c84c (diff) | |
| download | vimium-56c5ab637ffe888a48fb68a7536781f6400eb13a.tar.bz2 | |
Merge branch 'curipha-search-compl-amazon-co-jp'
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion_engines.coffee | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/background_scripts/completion_engines.coffee b/background_scripts/completion_engines.coffee index 6e5a084d..0a53ad14 100644 --- a/background_scripts/completion_engines.coffee +++ b/background_scripts/completion_engines.coffee @@ -116,6 +116,17 @@ class Amazon extends BaseEngine parse: (xhr) -> JSON.parse(xhr.responseText)[1] +class AmazonJapan extends BaseEngine + constructor: -> + super + engineUrl: "https://completion.amazon.co.jp/search/complete?method=completion&search-alias=aps&client=amazon-search-ui&mkt=6&q=%s" + regexps: "^https?://www\\.amazon\\.co\\.jp/(s/|gp/search)" + example: + searchUrl: "https://www.amazon.co.jp/s/?field-keywords=%s" + keyword: "aj" + + parse: (xhr) -> JSON.parse(xhr.responseText)[1] + class DuckDuckGo extends BaseEngine constructor: -> super @@ -169,6 +180,7 @@ CompletionEngines = [ Wikipedia Bing Amazon + AmazonJapan Webster Qwant DummyCompletionEngine |
