pinterest: pin.it support & fix parsing

This commit is contained in:
wukko
2024-01-17 15:05:39 +06:00
parent 8c868c4385
commit 9aabb4d738
6 changed files with 39 additions and 24 deletions

View File

@@ -25,6 +25,13 @@ export function aliasURL(url) {
}`)
}
break;
case "pin":
if (url.hostname === 'pin.it' && parts.length === 2) {
url = new URL(`https://pinterest.com/url_shortener/${
encodeURIComponent(parts[1])
}`)
}
break;
case "vxtwitter":
case "fixvx":