From 3738b180ddaa75d23f027272dd072dda4bc8e105 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 17 Jul 2024 13:17:50 -0400 Subject: Don't play notification if video is muted Fixes #1888 --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index cc0419e6..262b51c9 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1721,7 +1721,8 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u } } - if (autoSkip && Config.config.audioNotificationOnSkip && !isSubmittingSegment) { + if (autoSkip && Config.config.audioNotificationOnSkip + && !isSubmittingSegment && !getVideo()?.muted) { const beep = new Audio(chrome.runtime.getURL("icons/beep.ogg")); beep.volume = getVideo().volume * 0.1; const oldMetadata = navigator.mediaSession.metadata -- cgit v1.2.3