From ee770f4610be0efc997a69e5643ac212efab7e63 Mon Sep 17 00:00:00 2001 From: shinigami-eyes <43276258+shinigami-eyes@users.noreply.github.com> Date: Fri, 14 Jun 2019 18:51:22 +0200 Subject: [PATCH] Normalize medium links --- extension/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/content.js b/extension/content.js index 9836f6d..fa9cbde 100644 --- a/extension/content.js +++ b/extension/content.js @@ -466,7 +466,7 @@ function getIdentifierInternal(urlstr) { return 'disqus.com' + takeFirstPathComponents(url.pathname, 2); } if (isHostedOn(host, 'medium.com')) { - return 'medium.com' + takeFirstPathComponents(url.pathname, 1); + return 'medium.com' + takeFirstPathComponents(url.pathname.replace('/t/', '/'), 1); } if (isHostedOn(host, 'tumblr.com')) { if (url.pathname.startsWith('/register/follow/')) {