aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorDavid Beitey2017-08-31 11:45:53 +1000
committerDavid Beitey2017-08-31 11:45:53 +1000
commit684d118683e1c923877a218f925610eaa8b910eb (patch)
tree2f68ef21b915cb98481e05c934f6c0b620f98549 /background_scripts
parent5024d44910048d39888ecb1f22709365fbc85ba0 (diff)
downloadvimium-684d118683e1c923877a218f925610eaa8b910eb.tar.bz2
Update URLs to HTTPS in code, pages and docs
Updating URLs to use HTTPS provides greater privacy and reduces the potential of having content modified whilst in transit (as it happening more and more by ISPs, networks, state actors etc). These URLs themselves have been tested and confirmed to work over HTTPS.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/completion_engines.coffee20
-rw-r--r--background_scripts/completion_search.coffee2
2 files changed, 11 insertions, 11 deletions
diff --git a/background_scripts/completion_engines.coffee b/background_scripts/completion_engines.coffee
index 5ec24ed6..caff9cff 100644
--- a/background_scripts/completion_engines.coffee
+++ b/background_scripts/completion_engines.coffee
@@ -47,17 +47,17 @@ class GoogleXMLBaseEngine extends BaseEngine
class Google extends GoogleXMLBaseEngine
constructor: () ->
super
- engineUrl: "http://suggestqueries.google.com/complete/search?ss_protocol=legace&client=toolbar&q=%s"
+ engineUrl: "https://suggestqueries.google.com/complete/search?ss_protocol=legace&client=toolbar&q=%s"
regexps: "^https?://[a-z]+\\.google\\.(com|ie|co\\.uk|ca|com\\.au)/"
example:
- searchUrl: "http://www.google.com/search?q=%s"
+ searchUrl: "https://www.google.com/search?q=%s"
keyword: "g"
class GoogleMaps extends GoogleXMLBaseEngine
prefix: "map of "
constructor: () ->
super
- engineUrl: "http://suggestqueries.google.com/complete/search?ss_protocol=legace&client=toolbar&q=#{@prefix.split(' ').join '+'}%s"
+ engineUrl: "https://suggestqueries.google.com/complete/search?ss_protocol=legace&client=toolbar&q=#{@prefix.split(' ').join '+'}%s"
regexps: "^https?://[a-z]+\\.google\\.(com|ie|co\\.uk|ca|com\\.au)/maps"
example:
searchUrl: "https://www.google.com/maps?q=%s"
@@ -77,10 +77,10 @@ class GoogleMaps extends GoogleXMLBaseEngine
class Youtube extends GoogleXMLBaseEngine
constructor: ->
super
- engineUrl: "http://suggestqueries.google.com/complete/search?client=youtube&ds=yt&xml=t&q=%s"
+ engineUrl: "https://suggestqueries.google.com/complete/search?client=youtube&ds=yt&xml=t&q=%s"
regexps: "^https?://[a-z]+\\.youtube\\.com/results"
example:
- searchUrl: "http://www.youtube.com/results?search_query=%s"
+ searchUrl: "https://www.youtube.com/results?search_query=%s"
keyword: "y"
class Wikipedia extends BaseEngine
@@ -89,7 +89,7 @@ class Wikipedia extends BaseEngine
engineUrl: "https://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=%s"
regexps: "^https?://[a-z]+\\.wikipedia\\.org/"
example:
- searchUrl: "http://www.wikipedia.org/w/index.php?title=Special:Search&search=%s"
+ searchUrl: "https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s"
keyword: "w"
parse: (xhr) -> JSON.parse(xhr.responseText)[1]
@@ -97,7 +97,7 @@ class Wikipedia extends BaseEngine
class Bing extends BaseEngine
constructor: ->
super
- engineUrl: "http://api.bing.com/osjson.aspx?query=%s"
+ engineUrl: "https://api.bing.com/osjson.aspx?query=%s"
regexps: "^https?://www\\.bing\\.com/search"
example:
searchUrl: "https://www.bing.com/search?q=%s"
@@ -111,7 +111,7 @@ class Amazon extends BaseEngine
engineUrl: "https://completion.amazon.com/search/complete?method=completion&search-alias=aps&client=amazon-search-ui&mkt=1&q=%s"
regexps: "^https?://www\\.amazon\\.(com|co\\.uk|ca|de|com\\.au)/s/"
example:
- searchUrl: "http://www.amazon.com/s/?field-keywords=%s"
+ searchUrl: "https://www.amazon.com/s/?field-keywords=%s"
keyword: "a"
parse: (xhr) -> JSON.parse(xhr.responseText)[1]
@@ -131,10 +131,10 @@ class DuckDuckGo extends BaseEngine
class Webster extends BaseEngine
constructor: ->
super
- engineUrl: "http://www.merriam-webster.com/autocomplete?query=%s"
+ engineUrl: "https://www.merriam-webster.com/autocomplete?query=%s"
regexps: "^https?://www.merriam-webster.com/dictionary/"
example:
- searchUrl: "http://www.merriam-webster.com/dictionary/%s"
+ searchUrl: "https://www.merriam-webster.com/dictionary/%s"
keyword: "dw"
description: "Dictionary"
diff --git a/background_scripts/completion_search.coffee b/background_scripts/completion_search.coffee
index 7926b45b..52206c78 100644
--- a/background_scripts/completion_search.coffee
+++ b/background_scripts/completion_search.coffee
@@ -2,7 +2,7 @@
# This is a wrapper class for completion engines. It handles the case where a custom search engine includes a
# prefix query term (or terms). For example:
#
-# http://www.google.com/search?q=javascript+%s
+# https://www.google.com/search?q=javascript+%s
#
# In this case, we get better suggestions if we include the term "javascript" in queries sent to the
# completion engine. This wrapper handles adding such prefixes to completion-engine queries and removing them