Restructure qb configfile and pass arguments to newbrowser
This commit is contained in:
parent
aee545d2b9
commit
b2a8a2e648
@ -2,22 +2,8 @@
|
|||||||
|
|
||||||
config.backend = "webengine"
|
config.backend = "webengine"
|
||||||
config.load_autoconfig = False
|
config.load_autoconfig = False
|
||||||
|
|
||||||
# c.qt.force_software_rendering = "software-opengl"
|
|
||||||
|
|
||||||
c.completion.shrink = True
|
c.completion.shrink = True
|
||||||
c.confirm_quit = ["downloads"]
|
c.confirm_quit = ["downloads"]
|
||||||
# c.content.developer_extras = True
|
|
||||||
c.content.proxy = "socks://localhost:9050"
|
|
||||||
c.content.javascript.enabled = False
|
|
||||||
c.content.canvas_reading = False # https://en.wikipedia.org/wiki/Canvas_fingerprinting
|
|
||||||
c.content.webgl = False # https://browserleaks.com/webgl
|
|
||||||
c.content.ssl_strict = True
|
|
||||||
c.content.headers.accept_language = "en-US,en;q=0.5"
|
|
||||||
c.content.headers.custom = { "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" }
|
|
||||||
c.content.headers.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
|
|
||||||
c.content.webrtc_ip_handling_policy = "default-public-interface-only"
|
|
||||||
c.content.cookies.accept = "no-3rdparty"
|
|
||||||
c.downloads.location.directory = "/data/temporary"
|
c.downloads.location.directory = "/data/temporary"
|
||||||
c.downloads.location.suggestion = "both"
|
c.downloads.location.suggestion = "both"
|
||||||
c.downloads.open_dispatcher = "rifle"
|
c.downloads.open_dispatcher = "rifle"
|
||||||
@ -38,11 +24,26 @@ c.url.searchengines = { "startpage": "https://startpage.com/do/search?query={}"
|
|||||||
, "framabee": "https://framabee.org/?q={}"
|
, "framabee": "https://framabee.org/?q={}"
|
||||||
, "invidious": "http://axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion/search?q={}"
|
, "invidious": "http://axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion/search?q={}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Privacy
|
||||||
|
c.content.proxy = "socks://localhost:9050"
|
||||||
|
c.content.javascript.enabled = False
|
||||||
|
c.content.canvas_reading = False # https://en.wikipedia.org/wiki/Canvas_fingerprinting
|
||||||
|
c.content.webgl = False # https://browserleaks.com/webgl
|
||||||
|
c.content.ssl_strict = True
|
||||||
|
c.content.headers.accept_language = "en-US,en;q=0.5"
|
||||||
|
c.content.headers.custom = { "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" }
|
||||||
|
c.content.headers.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
|
||||||
|
c.content.webrtc_ip_handling_policy = "default-public-interface-only"
|
||||||
|
c.content.cookies.accept = "no-3rdparty"
|
||||||
|
|
||||||
|
# Aliases
|
||||||
c.aliases = { "wq": "quit --save"
|
c.aliases = { "wq": "quit --save"
|
||||||
, "set": "set -t"
|
, "set": "set -t"
|
||||||
, "quickmarks": "open qute://bookmarks/"
|
, "quickmarks": "open qute://bookmarks/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Bindings
|
||||||
config.bind("<backspace>", "back", mode="normal")
|
config.bind("<backspace>", "back", mode="normal")
|
||||||
config.bind("x", "spawn --detach mpv {url}", mode="normal")
|
config.bind("x", "spawn --detach mpv {url}", mode="normal")
|
||||||
config.bind(";x", "hint links spawn --detach mpv {hint-url}", mode="normal")
|
config.bind(";x", "hint links spawn --detach mpv {hint-url}", mode="normal")
|
||||||
@ -81,4 +82,3 @@ allowed = [ 'https://duckduckgo.com/*'
|
|||||||
|
|
||||||
for pattern in allowed:
|
for pattern in allowed:
|
||||||
config.set('content.javascript.enabled', True, pattern)
|
config.set('content.javascript.enabled', True, pattern)
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec qutebrowser --temp-basedir --config-py $HOME/.config/qutebrowser/config.py
|
exec qutebrowser --temp-basedir --config-py $HOME/.config/qutebrowser/config.py "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user