diff --git a/src/popup.ts b/src/popup.ts index 5d70b24d..a60e2179 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -1,7 +1,7 @@ import Config from "./config"; import Utils from "./utils"; -import { SponsorTime, SponsorHideType, ActionType, SegmentUUID } from "./types"; +import { SponsorTime, SponsorHideType, ActionType, SegmentUUID, SponsorSourceType } from "./types"; import { Message, MessageResponse, IsInfoFoundMessageResponse } from "./messageTypes"; import { showDonationLink } from "./utils/configUtils"; import { AnimationUtils } from "./utils/animationUtils"; @@ -432,7 +432,8 @@ async function runThePopup(messageListener?: MessageListener): Promise { if (currentSegmentTab === SegmentTab.Segments) { return segment.actionType !== ActionType.Chapter; } else if (currentSegmentTab === SegmentTab.Chapters) { - return segment.actionType === ActionType.Chapter; + return segment.actionType === ActionType.Chapter + && segment.source !== SponsorSourceType.YouTube; } else { return true; }