diff options
| author | Stephen Blott | 2015-05-15 14:13:35 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-15 14:13:35 +0100 |
| commit | ea2795c37fe8fce95c6ed1e97ae503aac81ee45a (patch) | |
| tree | 63a555c881aec8fb91c456bfa8aeb064c2a68adc | |
| parent | 517048005bf82a9d679898f55942bec82643ea76 (diff) | |
| download | vimium-ea2795c37fe8fce95c6ed1e97ae503aac81ee45a.tar.bz2 | |
Add a couple more useless Google search parameters.
| -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 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 ] |
