From d27a66202e528efb3c2648194c7ead6ca0ac6948 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Mon, 7 May 2018 03:01:24 +0200 Subject: [PATCH] Remove "Show this thread" in quoted tweets from notifications and screenshots --- Resources/Scripts/code.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js index 086cc401..62452dc0 100644 --- a/Resources/Scripts/code.js +++ b/Resources/Scripts/code.js @@ -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"));