(no title)
treeshateorcs | 1 year ago
def redirect(info: interceptor.Request):
if info.request_url.host() == "en.m.wikipedia.org":
new_url = QUrl(info.request_url)
new_url.setHost("en.wikipedia.org")
try:
info.redirect(new_url)
except interceptors.RedirectFailedException:
pass
BoingBoomTschak|1 year ago