From 5134a7a2befb0448c1a7e989f31530fd2e10df52 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 14 May 2015 10:10:30 +0100 Subject: Add a couple of Google search perameter filters. --- background_scripts/completion.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index bd72fae5..1e22587f 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -147,8 +147,9 @@ class Suggestion # stripPatterns: [ # 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".split(/\s+/).map (param) -> new RegExp "\&#{param}=[^&]+" ] + "ei gws_rd url ved usg sa usg sig2 bih biw cd".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