api/service-config: add new domains for vk

This commit is contained in:
wukko
2024-11-26 18:21:44 +06:00
parent 5be8789576
commit d4bcb1ba61
2 changed files with 9 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ function aliasURL(url) {
case "fixvx":
case "x":
if (services.twitter.altDomains.includes(url.hostname)) {
url.hostname = 'twitter.com'
url.hostname = 'twitter.com';
}
break;
@@ -85,6 +85,13 @@ function aliasURL(url) {
url.hostname = 'instagram.com';
}
break;
case "vk":
case "vkvideo":
if (services.vk.altDomains.includes(url.hostname)) {
url.hostname = 'vk.com';
}
break;
}
return url