]> git.rmz.io Git - dotfiles.git/commitdiff
qutebrowser: disable protocol handler for mail: and ical:
authorSamir Benmendil <me@rmz.io>
Sun, 5 Jan 2020 14:42:10 +0000 (14:42 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 5 Jan 2020 14:42:10 +0000 (14:42 +0000)
qutebrowser/config.py

index 6c66de1d2d82000fe3778515602829180e9d9ab7..d81777e849b9b800646a0ebce75fbd62586d94fe 100644 (file)
@@ -800,6 +800,10 @@ c.content.headers.accept_language = 'en-UK;q=1.0, en;q=0.9, de;q=0.7, fr;q=0.7,
 ##   - 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.