mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-18 15:15:48 +02:00
Remove "Show this thread" in quoted tweets from notifications and screenshots
This commit is contained in:
parent
07de2f450c
commit
d27a66202e
@ -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();
|
let type = tweet.getChirpType();
|
||||||
|
|
||||||
if (type === "follow"){
|
if (type === "follow"){
|
||||||
@ -682,9 +688,9 @@
|
|||||||
html.find("footer").last().remove(); // apparently withTweetActions breaks for certain tweets, nice
|
html.find("footer").last().remove(); // apparently withTweetActions breaks for certain tweets, nice
|
||||||
html.find(".td-screenshot-remove").remove();
|
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";
|
return $(this).text() === "Show this thread";
|
||||||
}).first().remove();
|
}).remove();
|
||||||
|
|
||||||
html.addClass($(document.documentElement).attr("class"));
|
html.addClass($(document.documentElement).attr("class"));
|
||||||
html.addClass($(document.body).attr("class"));
|
html.addClass($(document.body).attr("class"));
|
||||||
|
Loading…
Reference in New Issue
Block a user