From 6eb1d5d9544f589264c829c942f787505e0109b1 Mon Sep 17 00:00:00 2001 From: Michael C Date: Fri, 29 Jul 2022 00:37:02 -0400 Subject: [PATCH] allow disabling mute segments locally --- src/popup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup.ts b/src/popup.ts index 75afa07b..6be1f330 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -576,7 +576,7 @@ async function runThePopup(messageListener?: MessageListener): Promise { voteButtonsContainer.appendChild(upvoteButton); voteButtonsContainer.appendChild(downvoteButton); voteButtonsContainer.appendChild(uuidButton); - if (segmentTimes[i].actionType === ActionType.Skip + if ((segmentTimes[i].actionType === ActionType.Skip || segmentTimes[i].actionType === ActionType.Mute) && [SponsorHideType.Visible, SponsorHideType.Hidden].includes(segmentTimes[i].hidden)) { voteButtonsContainer.appendChild(hideButton); }