From d61d5bfe37a92f82b682562144627b9f625ee502 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 26 Sep 2020 14:39:21 +0100 Subject: [PATCH 1/1] qutebrowser: move cookies exception to autoconfig That is where the bindings will save them to. Also ignore that file as it will most likely only contain local and private data. --- qutebrowser/.gitignore | 1 + qutebrowser/config.py | 14 +------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/qutebrowser/.gitignore b/qutebrowser/.gitignore index bccbd78..77b9ee0 100644 --- a/qutebrowser/.gitignore +++ b/qutebrowser/.gitignore @@ -1 +1,2 @@ /qsettings/ +autoconfig.yml diff --git a/qutebrowser/config.py b/qutebrowser/config.py index a3bf122..746c785 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. @@ -575,18 +575,6 @@ c.confirm_quit = ['downloads'] ## - 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', '*://*.humblebundle.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.mailfence.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.reddit.com/*') -config.set('content.cookies.accept', 'no-3rdparty', '*://*.steampowered.com/*') - ## Store cookies. Note this option needs a restart with QtWebEngine on Qt ## < 5.9. ## Type: Bool -- 2.48.1