diff --git a/layouts/home/script.js b/layouts/home/script.js index a90ede04..190f6f79 100644 --- a/layouts/home/script.js +++ b/layouts/home/script.js @@ -22,9 +22,9 @@ function fixTweetThreadLine() { let tweet = tweets[i]; let tweet2 = tweets[i + 1]; if(!tweet2) continue; - if(tweet.tweet.threadContinuation && !tweet2.tweet.noTop) { - delete tweet2.tweet.threadContinuation; + if(tweet.classList.contains('tweet-self-thread-continuation') && !tweet2.classList.contains('tweet-no-top')) { tweet.getElementsByClassName('tweet-self-thread-div')[0].hidden = true; + tweet.classList.remove('tweet-self-thread-continuation'); } } }