From 6f4a99a7cb452b97b750554c2859d2146a617db5 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Wed, 21 Jun 2017 10:13:40 +0200 Subject: [PATCH] Remove drop down button from follow notifications --- Resources/Scripts/code.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js index deb8a7b6..2853da69 100644 --- a/Resources/Scripts/code.js +++ b/Resources/Scripts/code.js @@ -147,8 +147,13 @@ 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; }); - - if (tweet.getChirpType().includes("list_member")){ + + let type = tweet.getChirpType(); + + if (type === "follow"){ + html.find(".js-user-actions-menu").parent().remove(); + } + else if (type.includes("list_member")){ html.find(".activity-header").first().css("margin-top", "2px"); html.find(".avatar").first().css("margin-bottom", "0"); }