Skip to content

best way to save what you love

processing url: alt domains for services and fixvx support

wukkoaaa61cfee9b6
diff --git a/src/modules/processing/servicesConfig.json b/src/modules/processing/servicesConfig.json
index e33bdab4..b2b260f3 100644
--- a/src/modules/processing/servicesConfig.json
+++ b/src/modules/processing/servicesConfig.json
@@ -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
},
diff --git a/src/modules/processing/url.js b/src/modules/processing/url.js
index 246d9620..bb602109 100644
--- a/src/modules/processing/url.js
+++ b/src/modules/processing/url.js
@@ -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;