From cd532aff1f424d0ce01bbb5c5994605ba2996065 Mon Sep 17 00:00:00 2001 From: shinigami-eyes <43276258+shinigami-eyes@users.noreply.github.com> Date: Tue, 30 Apr 2019 22:04:29 +0200 Subject: [PATCH] Skip reddit post colorization only if we are on reddit --- extension/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/content.js b/extension/content.js index 259f98c..7d7b583 100644 --- a/extension/content.js +++ b/extension/content.js @@ -449,7 +449,7 @@ function getIdentifierInternal(urlstr) { if (isHostedOn(host, 'reddit.com')) { var pathname = url.pathname.replace('/u/', '/user/'); if (!pathname.startsWith('/user/') && !pathname.startsWith('/r/')) return null; - if(pathname.includes('/comments/')) return null; + if(pathname.includes('/comments/') && hostname == 'reddit.com') return null; return 'reddit.com' + takeFirstPathComponents(pathname, 2); } if (isHostedOn(host, 'twitter.com')) {