Don't color timestamp of disqus comments on sites that are labeled one way or the other

This commit is contained in:
shinigami-eyes 2019-02-18 21:36:55 +01:00
parent 6fe4d9a4bd
commit 1f2ffde6bd
1 changed files with 3 additions and 0 deletions

View File

@ -315,6 +315,9 @@ function getIdentifierInternal(urlstr) {
var parent = urlstr.parentElement;
if (parent && parent.classList.contains('domain') && urlstr.textContent.startsWith('self.')) return null;
}
if (hostname == 'disqus.com') {
if (urlstr.classList && urlstr.classList.contains('time-ago')) return null;
}
if (hostname == 'facebook.com') {
var parent = urlstr.parentElement;