From 75b5c31d07378f65dc9dadbbba13b253de45182e Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 23 Nov 2021 21:05:27 -0500 Subject: [PATCH] Fix filler category notice --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index f87a477b..76aa1f42 100644 --- a/src/content.ts +++ b/src/content.ts @@ -341,7 +341,8 @@ async function videoIDChange(id) { utils.wait(getControls).then(() => { const playButton = document.querySelector(".ytp-play-button") as HTMLElement; const allCategories = ["sponsor", "intro", "outro", "selfpromo", "interaction"]; - if (playButton && allCategories.every((name) => Config.config.categorySelections.some((selection) => selection.name === name))) { + if (playButton && allCategories.every((name) => Config.config.categorySelections.some((selection) => selection.name === name)) + && utils.getCategorySelection("filler") === undefined) { new Tooltip({ text: chrome.i18n.getMessage("fillerNewFeature"), link: "https://wiki.sponsor.ajay.app/w/Filler_Tangent",