1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-20 12:15:51 +02:00

Remove "Show this thread" in quoted tweets from notifications and screenshots

This commit is contained in:
chylex 2018-05-07 03:01:24 +02:00
parent 07de2f450c
commit d27a66202e

View File

@ -213,6 +213,12 @@
}
});
if (tweet.quotedTweet){
html.find("p.txt-mute").filter(function(){
return $(this).text() === "Show this thread";
}).first().remove();
}
let type = tweet.getChirpType();
if (type === "follow"){
@ -682,9 +688,9 @@
html.find("footer").last().remove(); // apparently withTweetActions breaks for certain tweets, nice
html.find(".td-screenshot-remove").remove();
html.find("p.link-complex-target").filter(function(){
html.find("p.link-complex-target,p.txt-mute").filter(function(){
return $(this).text() === "Show this thread";
}).first().remove();
}).remove();
html.addClass($(document.documentElement).attr("class"));
html.addClass($(document.body).attr("class"));