aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-14 10:10:30 +0100
committerStephen Blott2015-05-14 10:10:30 +0100
commit5134a7a2befb0448c1a7e989f31530fd2e10df52 (patch)
treeb0a615f75d5a1e33ad5ec6c0728f804311be947e /background_scripts/completion.coffee
parentca388d13bfb04c3b72bc57bb99f2821f63c41948 (diff)
downloadvimium-5134a7a2befb0448c1a7e989f31530fd2e10df52.tar.bz2
Add a couple of Google search perameter filters.
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee3
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 ]