Skip reddit post colorization only if we are on reddit

This commit is contained in:
shinigami-eyes 2019-04-30 22:04:29 +02:00
parent 70e206ba59
commit cd532aff1f
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {