Added subdomain support for LibMedium

This commit is contained in:
ManeraKai 2023-05-28 09:03:38 +03:00
parent 649e83b77f
commit f035e800ac
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 0 deletions

View File

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