diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-09-09 17:06:52 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-09-09 17:06:52 -0700 |
commit | d93876512c942ef7c8080edb29a1904c8c7e704f (patch) | |
tree | 80da1565d2e1762b7fe03f773e665a1441fc03e3 | |
parent | 5be9f3619243706b8fa201ae725ef219039aa1b3 (diff) |
fix: reddit redirection
-rw-r--r-- | .config/qutebrowser/config.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 816d848..7278331 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -363,7 +363,7 @@ c.downloads.location.directory = "~/pulls" c.spellcheck.languages = ["en-US"] c.content.pdfjs = True -c.content.blocking.method = "both" +c.content.blocking.method = "adblock" c.completion.height = "33%" c.completion.open_categories = ["quickmarks", "history"] @@ -438,6 +438,9 @@ def redirect(request): new = redirection.get(url.host()) if new is not None and new(url) is not False: message.info("redirecting to " + url.toString()) - request.redirect(url) + try: + request.redirect(url) + except: + pass interceptor.register(redirect) |