aboutsummaryrefslogtreecommitdiffstats
path: root/.w3m
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-08-05 05:14:10 +0000
committerterminaldweller <thabogre@gmail.com>2021-08-05 05:14:10 +0000
commit5f596a3f401a0a40eefcc0f8b6c6b5083748cc1a (patch)
treea892e31077574f1c1a340af257bb6e27ae0ad89c /.w3m
parentupdate for neomutt (diff)
downloadscripts-5f596a3f401a0a40eefcc0f8b6c6b5083748cc1a.tar.gz
scripts-5f596a3f401a0a40eefcc0f8b6c6b5083748cc1a.zip
a lot of updates and fixes
Diffstat (limited to '')
-rwxr-xr-x.w3m/cgi-bin/agent_windows_10_win1015
-rw-r--r--.w3m/config2
2 files changed, 16 insertions, 1 deletions
diff --git a/.w3m/cgi-bin/agent_windows_10_win10 b/.w3m/cgi-bin/agent_windows_10_win10
new file mode 100755
index 0000000..36f3d64
--- /dev/null
+++ b/.w3m/cgi-bin/agent_windows_10_win10
@@ -0,0 +1,15 @@
+#!/usr/bin/env sh
+USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246"
+
+# open settings options
+tmux send-keys "$W3M_HOTKEY_OPTIONS"
+# jump to user agent
+tmux send-keys "155$W3M_HOTKEY_LINK_BEGIN"
+# clear user agent string
+tmux send-keys 'Enter' 'C-u'
+# new user agent string
+tmux send-keys "$USER_AGENT" 'Enter'
+# save changes
+tmux send-keys "173$W3M_HOTKEY_LINK_BEGIN" 'Enter'
+# refresh page
+tmux send-keys "$W3M_HOTKEY_RELOAD"
diff --git a/.w3m/config b/.w3m/config
index 75528a1..4d92a24 100644
--- a/.w3m/config
+++ b/.w3m/config
@@ -96,7 +96,7 @@ ftppasswd
ftppass_hostnamegen 0
pre_form_file ~/.w3m/pre_form
siteconf_file ~/.w3m/siteconf
-user_agent
+user_agent ~/.w3m/cgi-bin/agent_windows_10_win10
no_referer 0
accept_language en;q=1.0
accept_encoding gzip, compress, bzip, bzip2, deflate