X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/6316bb82fd3e51cc1f214ad7c84a392251d44ba2..b76f00cb193eaba72d7515efda5098a724c05620:/qutebrowser/config.py diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 105759f..9951404 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -5,7 +5,7 @@ ## This is here so configs done via the GUI are still loaded. ## Remove it to not load settings done via the GUI. -# config.load_autoconfig() +config.load_autoconfig() ## Aliases for commands. The keys of the given dictionary are the ## aliases, while the values are the commands they map to. @@ -574,15 +574,6 @@ c.confirm_quit = ['downloads'] ## - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty. ## - never: Don't accept cookies at all. c.content.cookies.accept = 'never' -config.set('content.cookies.accept', 'no-3rdparty', '*://*.amazon.co.uk/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.amazon.de/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.duckduckgo.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.freedesktop.org/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.github.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.gitlab.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.google.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.mailfence.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.reddit.com/*') ## Store cookies. Note this option needs a restart with QtWebEngine on Qt ## < 5.9. @@ -628,7 +619,7 @@ c.content.dns_prefetch = True ## - true ## - false ## - ask -# c.content.geolocation = 'ask' +c.content.geolocation = False ## Value to send in the `Accept-Language` header. Note that the value ## read from JavaScript is always the global value. @@ -1853,6 +1844,10 @@ config.bind('m', 'spawn mpv {url}') # config.bind('sk', 'set-cmd-text -s :bind') # config.bind('sl', 'set-cmd-text -s :set -t') # config.bind('ss', 'set-cmd-text -s :set') +config.bind('tCh', 'spawn --userscript config-cycle-tld -p content.cookies.accept no-3rdparty never;; reload') +config.bind('tch', 'spawn --userscript config-cycle-tld -p -t content.cookies.accept no-3rdparty never;; reload') +config.bind('tGh', 'spawn --userscript config-cycle-tld -p content.geolocation ;; reload') +config.bind('tgh', 'spawn --userscript config-cycle-tld -p -t content.geolocation ;; reload') # config.bind('tIH', 'config-cycle -p -u *://*.{url:host}/* content.images ;; reload') # config.bind('tIh', 'config-cycle -p -u *://{url:host}/* content.images ;; reload') # config.bind('tIu', 'config-cycle -p -u {url} content.images ;; reload') @@ -1862,9 +1857,6 @@ config.bind('m', 'spawn mpv {url}') # config.bind('tSH', 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload') # config.bind('tSh', 'config-cycle -p -u *://{url:host}/* content.javascript.enabled ;; reload') # config.bind('tSu', 'config-cycle -p -u {url} content.javascript.enabled ;; reload') -config.bind('tcH', 'config-cycle -p -t -u *://*.{url:host}/* content.cookies.accept no-3rdparty never;; reload') -config.bind('tch', 'config-cycle -p -t -u *://{url:host}/* content.cookies.accept no-3rdparty never;; reload') -config.bind('tcu', 'config-cycle -p -t -u {url} content.cookies.accept no-3rdparty never;; reload') # config.bind('th', 'back -t') # config.bind('tiH', 'config-cycle -p -t -u *://*.{url:host}/* content.images ;; reload') # config.bind('tih', 'config-cycle -p -t -u *://{url:host}/* content.images ;; reload') @@ -1900,6 +1892,9 @@ config.bind('tcu', 'config-cycle -p -t -u {url} content.cookies.acc # config.bind('yp', 'yank pretty-url') # config.bind('yt', 'yank title') # config.bind('yy', 'yank') +config.bind('zl', 'spawn --userscript qute-pass') +config.bind('zul', 'spawn --userscript qute-pass --username-only') +config.bind('zpl', 'spawn --userscript qute-pass --password-only') # config.bind('{{', 'navigate prev -t') # config.bind('}}', 'navigate next -t')