def intercept(info: interceptor.Request):
url = info.request_url
if url.host() == "twitter.com":
- url.setHost("nitter.net")
+ url.setHost("nitter.dark.fail")
message.info("Redirecting to " + url.toString())
info.redirect(url)
if url.host() == "xkcd.com":
## cleared after this time. If set to 0, partially typed bindings are
## never cleared.
## Type: Int
-c.input.partial_timeout = 5000
+c.input.partial_timeout = 0
## Enable spatial navigation. Spatial navigation consists in the ability
## to navigate between focusable elements in a Web page, such as
## https://peter.sh/experiments/chromium-command-line-switches/ for a
## list) will work.
## Type: List of String
-c.qt.args = [str('proxy-pac-url=file://' / config.configdir / 'proxy.pac')]
+c.qt.args = ['proxy-pac-url=file://' + str(config.configdir / 'proxy.pac')]
## Additional environment variables to set. Setting an environment
## variable to null/None will unset it.