From 3a00bc7f8d971370bdaa30812b285185d46dd4df Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Thu, 14 Dec 2023 23:37:10 +0000 Subject: [PATCH] url: remove tumblr aliasing not quite sure what its purpose is/was anyways (tracking id removal? it's not used anyways) --- src/modules/processing/url.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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]}`);