From eed5de9d41d011a311b84c399319f42f1f39eadf Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 27 Oct 2025 23:40:38 -0400 Subject: [PATCH] Don't auto skip on music videos if non music category disabled --- src/content.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/content.ts b/src/content.ts index 36b84808..cc2edbc0 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1959,7 +1959,8 @@ function shouldAutoSkip(segment: SponsorTime): boolean { return (!getSkipProfileBool("manualSkipOnFullVideo") || !sponsorTimes?.some((s) => s.category === segment.category && s.actionType === ActionType.Full)) && (getCategorySelection(segment)?.option === CategorySkipOption.AutoSkip || - (getSkipProfileBool("autoSkipOnMusicVideos") && canSkipNonMusic && sponsorTimes?.some((s) => s.category === "music_offtopic") + (getSkipProfileBool("autoSkipOnMusicVideos") && canSkipNonMusic + && sponsorTimes?.some((s) => s.category === "music_offtopic" && getCategorySelection(segment)?.option === CategorySkipOption.AutoSkip) && segment.actionType === ActionType.Skip) || sponsorTimesSubmitting.some((s) => s.segment === segment.segment)) || isLoopedChapter(segment); @@ -1968,7 +1969,8 @@ function shouldAutoSkip(segment: SponsorTime): boolean { function shouldSkip(segment: SponsorTime): boolean { return segment.hidden === SponsorHideType.Visible && (segment.actionType !== ActionType.Full && getCategorySelection(segment)?.option > CategorySkipOption.ShowOverlay) - || (getSkipProfileBool("autoSkipOnMusicVideos") && sponsorTimes?.some((s) => s.category === "music_offtopic") + || (getSkipProfileBool("autoSkipOnMusicVideos") + && sponsorTimes?.some((s) => s.category === "music_offtopic" && getCategorySelection(segment)?.option === CategorySkipOption.AutoSkip) && segment.actionType === ActionType.Skip) || isLoopedChapter(segment); }