aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2019-07-01 13:58:33 +0000
committerGitHub <noreply@github.com>2019-07-01 13:58:33 +0000
commitd6545481aeb15b71f44f4a3b903fbd38703425de (patch)
treece5478bd6a172d5e32cc3a68e2e5a748407ff05a /doc
parentUpdate ChangeLog (diff)
parentAllow setting User Agent in Siteconf (diff)
downloadw3m-d6545481aeb15b71f44f4a3b903fbd38703425de.tar.gz
w3m-d6545481aeb15b71f44f4a3b903fbd38703425de.zip
Merge pull request #119 from adamemerson/siteconf-user-agent
Allow setting User Agent in Siteconf
Diffstat (limited to 'doc')
-rw-r--r--doc/README.siteconf7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/README.siteconf b/doc/README.siteconf
index 39b1028..5eb2554 100644
--- a/doc/README.siteconf
+++ b/doc/README.siteconf
@@ -13,6 +13,7 @@ substitute_url "<destination-url>"
url_charset <charset>
no_referer_from on|off
no_referer_to on|off
+user_agent "string"
The last match wins.
@@ -40,6 +41,12 @@ url_charset utf-8
When combinated with "decode_url" option turned on, links to
Wikipedia will be human-readable.
+url m@^https?://(.*\.)google\.com/@
+user_agent "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1"
+
+Tell Google we're actually Lynx. (So they send us a text-browser friendly
+results page.)
+
===== Regular expressions notes =====
Following expressions are all equivalent: