diff options
| -rw-r--r-- | background_scripts/completion.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
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 ] |
