diff --git a/src/content.ts b/src/content.ts index b28075a6..fd49addd 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1907,13 +1907,11 @@ function shouldAutoSkip(segment: SponsorTime): boolean { } function shouldSkip(segment: SponsorTime): boolean { - if (segment.actionType === ActionType.Full) { - return false; - } - return (segment.source !== SponsorSourceType.YouTube - && utils.getCategorySelection(segment.category)?.option !== CategorySkipOption.ShowOverlay) - || (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic") - && segment.actionType === ActionType.Skip); + return (segment.actionType !== ActionType.Full + && segment.source !== SponsorSourceType.YouTube + && utils.getCategorySelection(segment.category)?.option !== CategorySkipOption.ShowOverlay) + || (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic") + && segment.actionType === ActionType.Skip); } /** Creates any missing buttons on the YouTube player if possible. */