This commit is contained in:
ManeraKai 2023-06-11 03:37:31 +03:00
parent 8e93230930
commit 3cf6a43093
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 10 additions and 0 deletions

View File

@ -557,6 +557,16 @@ function redirect(url, type, initiator, forceRedirection) {
default: {
return `${randomInstance}${url.pathname}${url.search}`
}
case "quetre": {
const regex = /([a-z]+)\.quora\.com/.exec(url.hostname)
console.log(regex)
if (regex) {
const lang = regex[1]
url.searchParams.append("lang", lang)
return `${randomInstance}${url.pathname}${url.search}`
}
return `${randomInstance}${url.pathname}${url.search}`
}
}
}