aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-05-03 11:48:06 +0100
committerStephen Blott2015-05-03 11:50:33 +0100
commitdb59e05216ff0ce6bdd5af5fb6a6f7f3b1860a8e (patch)
tree2ae00cefee0f184d5c1387d192848a887fefa4db
parent98636859e0944b82fa6e3988e0ca943b5a27b145 (diff)
downloadvimium-db59e05216ff0ce6bdd5af5fb6a6f7f3b1860a8e.tar.bz2
Search completion; generalize Amazon.
-rw-r--r--background_scripts/search_engines.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/search_engines.coffee b/background_scripts/search_engines.coffee
index 043e3268..a80c218c 100644
--- a/background_scripts/search_engines.coffee
+++ b/background_scripts/search_engines.coffee
@@ -84,7 +84,7 @@ class Bing extends RegexpEngine
class Amazon extends RegexpEngine
# Example search URL: http://www.amazon.com/s/?field-keywords=%s
- constructor: -> super [ new RegExp "^https?://www\.amazon\.com/s/" ]
+ constructor: -> super [ new RegExp "^https?://www\.amazon\.(com|co.uk|ca|com.au)/s/" ]
getUrl: (queryTerms) -> "https://completion.amazon.com/search/complete?method=completion&search-alias=aps&client=amazon-search-ui&mkt=1&q=#{Utils.createSearchQuery queryTerms}"
parse: (xhr) -> JSON.parse(xhr.responseText)[1]