Skip to content

best way to save what you love

url: remove tumblr aliasing

dumbmoron3a00bc7f8d97
diff --git a/src/modules/processing/url.js b/src/modules/processing/url.js
index ab995b72..a7f35f2d 100644
--- a/src/modules/processing/url.js
+++ b/src/modules/processing/url.js
@@ -12,7 +12,7 @@ export function aliasURL(url) {
case "youtube":
if (url.pathname.startsWith('/live/') || url.pathname.startsWith('/shorts/')) {
url.pathname = '/watch';
- // ['', 'live' || 'shorts', id, ...rest]
+ // parts := ['', 'live' || 'shorts', id, ...rest]
url.search = `?v=${encodeURIComponent(parts[2])}`
}
break;
@@ -33,14 +33,6 @@ export function aliasURL(url) {
}
break;
- case "tumblr":
- if (!url.pathname.includes("/blog/view")) {
- if (url.pathname.endsWith('/'))
- url.pathname = url.pathname.slice(0, -1);
- url.pathname = url.pathname.replace(parts[5], '')
- }
- break;
-
case "twitch":
if (url.hostname === 'clips.twitch.tv' && parts.length >= 2) {
url = new URL(`https://twitch.tv/_/clip/${parts[1]}`);