From ea2795c37fe8fce95c6ed1e97ae503aac81ee45a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 15 May 2015 14:13:35 +0100 Subject: Add a couple more useless Google search parameters. --- background_scripts/completion.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 6ef42f6d..da858ca9 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -149,7 +149,8 @@ class Suggestion # Google search specific replacements; this replaces query parameters which are known to not be helpful. # There's some additional information here: http://www.teknoids.net/content/google-search-parameters-2012 [ "^https?://www\.google\.(com|ca|com\.au|co\.uk|ie)/.*[&?]q=" - "ei gws_rd url ved usg sa usg sig2 bih biw cd aqs ie".split(/\s+/).map (param) -> new RegExp "\&#{param}=[^&]+" ] + "ei gws_rd url ved usg sa usg sig2 bih biw cd aqs ie sourceid es_sm" + .split(/\s+/).map (param) -> new RegExp "\&#{param}=[^&]+" ] # General replacements; replaces leading and trailing fluff. [ '.', [ "^https?://", "\\W+$" ].map (re) -> new RegExp re ] -- cgit v1.2.3