]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
qutebrowser: disable protocol handler for mail: and ical:
[dotfiles.git] / qutebrowser / config.py
index becd0ccc342f80b082f88bcbe05f75a9324bdb4d..d81777e849b9b800646a0ebce75fbd62586d94fe 100644 (file)
@@ -579,7 +579,7 @@ c.content.cookies.accept = 'no-3rdparty'
 
 ## Try to pre-fetch DNS entries to speed up browsing.
 ## Type: Bool
 
 ## Try to pre-fetch DNS entries to speed up browsing.
 ## Type: Bool
-c.content.dns_prefetch = True
+c.content.dns_prefetch = True
 
 ## Expand each subframe to its contents. This will flatten all the frames
 ## to become one scrollable page.
 
 ## Expand each subframe to its contents. This will flatten all the frames
 ## to become one scrollable page.
@@ -597,7 +597,7 @@ c.content.cookies.accept = 'no-3rdparty'
 ## Value to send in the `Accept-Language` header. Note that the value
 ## read from JavaScript is always the global value.
 ## Type: String
 ## Value to send in the `Accept-Language` header. Note that the value
 ## read from JavaScript is always the global value.
 ## Type: String
-c.content.headers.accept_language = 'en-US,en,de,fr'
+c.content.headers.accept_language = 'en-UK;q=1.0, en;q=0.9, de;q=0.7, fr;q=0.7, *;q=0.5'
 
 ## Custom headers for qutebrowser HTTP requests.
 ## Type: Dict
 
 ## Custom headers for qutebrowser HTTP requests.
 ## Type: Dict
@@ -800,6 +800,10 @@ c.content.headers.accept_language = 'en-US,en,de,fr'
 ##   - false
 ##   - ask
 # c.content.register_protocol_handler = 'ask'
 ##   - false
 ##   - ask
 # c.content.register_protocol_handler = 'ask'
+with config.pattern('*://mail.google.com/*') as p:
+    p.content.register_protocol_handler = False
+with config.pattern('*://calendar.google.com/*') as p:
+    p.content.register_protocol_handler = False
 
 ## Enable quirks (such as faked user agent headers) needed to get
 ## specific sites to work properly.
 
 ## Enable quirks (such as faked user agent headers) needed to get
 ## specific sites to work properly.