From fbc423e2a7dddc2c6c6fae8992a0400a6d112d76 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Tue, 1 Aug 2017 16:59:25 +0200 Subject: [PATCH] Fix like/retweet notifications having invisible space with notification media previews disabled --- Resources/Scripts/code.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js index 394e44fb..bce8335e 100644 --- a/Resources/Scripts/code.js +++ b/Resources/Scripts/code.js @@ -165,6 +165,9 @@ } } } + else if (tweet instanceof TD.services.TwitterActionOnTweet){ + html.find(".js-media").remove(); + } html.find("a[href='#']").each(function(){ // remove <a> tags around links that don't lead anywhere (such as account names the tweet replied to) this.outerHTML = this.innerHTML;