]> git.rmz.io Git - dotfiles.git/commitdiff
qutebrowser: disable geolocation by default, add binding to enable per site
authorSamir Benmendil <me@rmz.io>
Sat, 26 Sep 2020 13:42:19 +0000 (14:42 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 26 Sep 2020 13:43:38 +0000 (14:43 +0100)
qutebrowser/config.py

index 746c78553045ee033e4a74fa583cc3b90c829f17..7a7e6ec2f7d188cfb51353271bd0dd26658aca64 100644 (file)
@@ -619,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.
@@ -1848,6 +1848,8 @@ config.bind('tCH', 'spawn --userscript config-cycle-tld -p    content.cookies.ac
 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('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')