processing url: alt domains for services and fixvx support
This commit is contained in:
parent
5928b21fee
commit
aaa61cfee9
2 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
},
|
||||
"twitter": {
|
||||
"alias": "twitter videos & voice",
|
||||
"altDomains": ["x.com", "vxtwitter.com", "fixvx.com"],
|
||||
"patterns": [":user/status/:id", ":user/status/:id/video/:v"],
|
||||
"enabled": true
|
||||
},
|
||||
|
|
|
@ -27,8 +27,9 @@ export function aliasURL(url) {
|
|||
break;
|
||||
|
||||
case "vxtwitter":
|
||||
case "fixvx":
|
||||
case "x":
|
||||
if (['x.com', 'vxtwitter.com'].includes(url.hostname)) {
|
||||
if (services.twitter.altDomains.includes(url.hostname)) {
|
||||
url.hostname = 'twitter.com'
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue