Fix: tweet snippet could not be found on a permalink page
This commit is contained in:
parent
c66a7d65a8
commit
e616f23e4c
@ -456,7 +456,7 @@ function getSnippet(node: HTMLElement) {
|
||||
var classList = node.classList;
|
||||
if (hostname == 'facebook.com' && node.dataset && node.dataset.ftr) return node;
|
||||
if (hostname == 'reddit.com' && (classList.contains('scrollerItem') || classList.contains('thing') || classList.contains('Comment'))) return node;
|
||||
if (hostname == 'twitter.com' && (classList.contains('stream-item'))) return node;
|
||||
if (hostname == 'twitter.com' && (classList.contains('stream-item') || classList.contains('permalink-tweet-container'))) return node;
|
||||
if (hostname == 'disqus.com' && (classList.contains('post-content'))) return node;
|
||||
if (hostname == 'medium.com' && (classList.contains('streamItem') || classList.contains('streamItemConversationItem'))) return node;
|
||||
if (hostname == 'youtube.com' && node.tagName == 'YTD-COMMENT-RENDERER') return node;
|
||||
|
Loading…
Reference in New Issue
Block a user