From: Samir Benmendil Date: Sun, 10 May 2020 14:21:13 +0000 (+0100) Subject: qutebrowser: let's not accept cookies anymore for most sites X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/8466879b5d5f59e60c4c900e1b356d4e69bf4542 qutebrowser: let's not accept cookies anymore for most sites This might be a tad to restrictive, but we'll see how it goes. --- diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 621042e..66d82b8 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -573,7 +573,16 @@ c.confirm_quit = ['downloads'] ## - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. ## - 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 = 'no-3rdparty' +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. @@ -1851,6 +1860,9 @@ 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')