]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
qutebrowser: accept no-3rd-party cookies
[dotfiles.git] / qutebrowser / config.py
index b9ec5abbcb9fa1e46598d60b6719e6375e88ece9..599b419c6b0ce63b28bdf6f8b81de0907e37f945 100644 (file)
@@ -24,7 +24,7 @@ try:
     def intercept(info: interceptor.Request):
         url = info.request_url
         if url.host() == "twitter.com":
-            url.setHost("nitter.dark.fail")
+            url.setHost("nitter.eu")
             message.info("Redirecting to " + url.toString())
             info.redirect(url)
         if url.host() == "xkcd.com":
@@ -358,7 +358,7 @@ 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.
-c.content.cookies.accept = 'never'
+c.content.cookies.accept = 'no-3rdparty'
 
 ## Store cookies.
 ## Type: Bool
@@ -1562,6 +1562,8 @@ c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}',
                        'ddg':     'https://duckduckgo.com/?t=chakra&q={}',
                        'slack':   'https://focalpointpositioning.slack.com/messages/{}',
                        'std':     'http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search={}',
+                       'hoogle':  'https://hoogle.haskell.org/?hoogle={}',
+                       'h':       'https://hoogle.haskell.org/?hoogle={}',
                       }
 
 ## Page(s) to open at the start.
@@ -1797,6 +1799,7 @@ config.bind('tgh', 'spawn --userscript config-cycle-tld -p -t content.geolocatio
 config.bind('zl',  'spawn --userscript qute-pass')
 config.bind('zul', 'spawn --userscript qute-pass --username-only')
 config.bind('zpl', 'spawn --userscript qute-pass --password-only')
+config.bind('zol', 'spawn --userscript qute-pass --otp-only')
 # config.bind('{{', 'navigate prev -t')
 # config.bind('}}', 'navigate next -t')