Skip to content

Commit

Permalink
remove tweet from tl too
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 15, 2022
1 parent 26afabc commit d599dc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/tweetviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,9 @@ class TweetViewer {
Array.from(document.getElementsByClassName('timeline')[0].getElementsByClassName(`tweet-id-${t.id_str}`)).forEach(tweet => {
tweet.remove();
});
if(document.getElementById('timeline')) Array.from(document.getElementById('timeline').getElementsByClassName(`tweet-id-${t.id_str}`)).forEach(tweet => {
tweet.remove();
});
if(options.mainTweet) {
let tweets = Array.from(timelineContainer.getElementsByClassName('tweet'));
if(tweets.length === 0) {
Expand Down

0 comments on commit d599dc9

Please sign in to comment.