[Surfraw-devel] [PATCH 1/2] duckduckgo redirects to non-www version

Tadas Slotkus makt at slotkus.lt
Thu Apr 27 22:35:51 UTC 2017


---
 README          | 2 +-
 elvi/duckduckgo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README b/README
index f6ac9a7..da8cef4 100644
--- a/README
+++ b/README
@@ -215,7 +215,7 @@ deja            -- Search usenet using Google Groups (groups.google.com)
 deli            -- Search Delicious bookmarks
 discogs         -- Search the Discogs database of music information (www.discogs.com)
 dmoz            -- Search the Open Directory Project web directory (dmoz.org)
-duckduckgo      -- Securely search the web using duckduckgo (www.duckduckgo.com)
+duckduckgo      -- Securely search the web using duckduckgo (duckduckgo.com)
 ebay            -- Search the Ebay auction site
 etym            -- Look up word origins at www.etymonline.com
 excite          -- Search on Excite (www.excite.com)
diff --git a/elvi/duckduckgo b/elvi/duckduckgo
index 0f5feaf..d377011 100755
--- a/elvi/duckduckgo
+++ b/elvi/duckduckgo
@@ -1,5 +1,5 @@
 #!/bin/sh
-# elvis: duckduckgo	-- Securely search the web using duckduckgo (www.duckduckgo.com)
+# elvis: duckduckgo	-- Securely search the web using duckduckgo (duckduckgo.com)
 # coder at kyleisom.net 20110105
 # relevant: https://duckduckgo.com/params.html
 # similar to duckduckgo elvi, adds more options and defaults to SSL.
@@ -7,7 +7,7 @@
 
 w3_config_hook () {
     def     SURFRAW_duckduckgo_results             "$SURFRAW_results"
-    def     SURFRAW_duckduckgo_base_url            "www.duckduckgo.com"
+    def     SURFRAW_duckduckgo_base_url            "duckduckgo.com"
     def     SURFRAW_duckduckgo_search              search
     def     SURFRAW_duckduckgo_params              "&kg=g"
     defyn   SURFRAW_duckduckgo_https_arg           0
@@ -21,7 +21,7 @@ w3_usage_hook () {
     cat <<EOF
 Usage: $w3_argv0 [options] [search words]...
 Description:
-  Surfraw search the web using DuckDuckGo (www.duckduckgo.com)
+  Surfraw search the web using DuckDuckGo (duckduckgo.com)
 Local options:
     -d,-ducky,-l,-lucky         use in case of overwhelming feeling of duckiness
     -j,-javascript              use javascript
-- 
1.8.3.1




More information about the Surfraw-devel mailing list