From db59e05216ff0ce6bdd5af5fb6a6f7f3b1860a8e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 3 May 2015 11:48:06 +0100 Subject: Search completion; generalize Amazon. --- background_scripts/search_engines.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') 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] -- cgit v1.2.3