]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
mutt: fix archive message path
[dotfiles.git] / qutebrowser / config.py
index 621042ed0c61f33913ceff895acb463e66106b48..82282c2b680cd78a51c3e9aafc7d79fdfde7e6bd 100644 (file)
@@ -573,7 +573,19 @@ 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.
 ##   - 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', '*://*.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.
 
 ## Store cookies. Note this option needs a restart with QtWebEngine on Qt
 ## < 5.9.
@@ -777,7 +789,9 @@ c.content.headers.accept_language = 'en-UK;q=1.0, en;q=0.9, de;q=0.7, fr;q=0.7,
 ##   - true
 ##   - false
 ##   - ask
 ##   - true
 ##   - false
 ##   - ask
-# c.content.notifications = 'ask'
+c.content.notifications = 'ask'
+config.set('content.notifications', True, '*://*.gitlab.com/*')
+config.set('content.notifications', True, '*://*.google.com/*')
 
 ## Allow pdf.js to view PDF files in the browser. Note that the files can
 ## still be downloaded by clicking the download button in the pdf.js
 
 ## Allow pdf.js to view PDF files in the browser. Note that the files can
 ## still be downloaded by clicking the download button in the pdf.js
@@ -1851,6 +1865,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('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')
 # 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')