This commit is contained in:
ManeraKai 2023-03-07 18:42:06 +03:00
parent 6164c9304c
commit 4ddfca0f74
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 11 additions and 1 deletions

View File

@ -181,6 +181,16 @@ function redirect(url, type, initiator, forceRedirection) {
}
return `${randomInstance}${url.pathname}${url.search}`
}
case "scribe": {
const regex = url.hostname.match(/^(link|cdn-images-\d+|.*)\.medium\.com/)
if (regex && regex.length > 1) {
const subdomain = regex[1]
if (subdomain != "link" || !subdomain.startsWith("cdn-images")) {
return `${randomInstance}/@${subdomain}${url.pathname}${url.search}`
}
}
return `${randomInstance}${url.pathname}${url.search}`
}
case "simplyTranslate": {
return `${randomInstance}/${url.search}`
}

View File

@ -236,7 +236,7 @@
}
},
"targets": [
"^https:\\/{2}(link\\.|cdn\\-images\\-\\d+\\.)?medium\\.com",
"^https:\\/{2}(.*\\.)?medium\\.com",
"^https?:\\/{2}towardsdatascience\\.com(\\/|$)",
"^https?:\\/{2}uxdesign\\.cc(\\/|$)",
"^https?:\\/{2}uxplanet\\.org(\\/|$)",