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":
## - 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