Add per-domain settings (and kludges) - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 557e505ce9a4da9654846dca4d05c2b701d9d9ed
(DIR) parent 397a1f688d1564d5d42c4af2cd6a542f46348168
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 3 Oct 2018 03:11:56
Add per-domain settings (and kludges)
(Kludges because both Twitter and YouTube seems to check User-Agent: and are
mostly happy with curl when cookies are not accepted...)
Diffstat:
config/luakit/userconf.lua | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff -r 397a1f688d15 -r 557e505ce9a4 config/luakit/userconf.lua
--- a/config/luakit/userconf.lua Wed Oct 03 02:50:40 2018 +0200
+++ b/config/luakit/userconf.lua Wed Oct 03 03:11:56 2018 +0200
@@ -42,6 +42,11 @@
y = "https://www.youtube.com/results?search_query=%s",
}
+-- Per-domain settings (and kludges)
+settings.on["mobile.twitter.com"].webview.user_agent = "curl/7.61.1"
+settings.on["youtu.be"].webview.user_agent = "curl/7.61.1"
+settings.on["youtube.com"].webview.user_agent = "curl/7.61.1"
+
-- Prefer cache_dir over data_dir for files that should be temporary
downloads.db_path = luakit.cache_dir .. "/downloads.db"
downloads.cert_db_path = luakit.cache_dir .. "/allowed_certificates.db"