From 45b5da67749c203adfa0bd3d27027a73f9ca69f7 Mon Sep 17 00:00:00 2001 From: dimden Date: Tue, 12 Sep 2023 02:51:36 +0300 Subject: [PATCH] hide button on 0 quote tweets --- scripts/tweetviewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tweetviewer.js b/scripts/tweetviewer.js index 7a942f91..8d4c7405 100644 --- a/scripts/tweetviewer.js +++ b/scripts/tweetviewer.js @@ -427,7 +427,7 @@ class TweetViewer { this.currentLocation = location.pathname; }); } - if(!this.retweetCommentsCursor) { + if(!this.retweetCommentsCursor || tweetRetweeters.length === 0) { this.container.getElementsByClassName('retweets_with_comments-more')[0].hidden = true; } else { this.container.getElementsByClassName('retweets_with_comments-more')[0].hidden = false;