mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Fix filler category notice
This commit is contained in:
@@ -341,7 +341,8 @@ async function videoIDChange(id) {
|
|||||||
utils.wait(getControls).then(() => {
|
utils.wait(getControls).then(() => {
|
||||||
const playButton = document.querySelector(".ytp-play-button") as HTMLElement;
|
const playButton = document.querySelector(".ytp-play-button") as HTMLElement;
|
||||||
const allCategories = ["sponsor", "intro", "outro", "selfpromo", "interaction"];
|
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({
|
new Tooltip({
|
||||||
text: chrome.i18n.getMessage("fillerNewFeature"),
|
text: chrome.i18n.getMessage("fillerNewFeature"),
|
||||||
link: "https://wiki.sponsor.ajay.app/w/Filler_Tangent",
|
link: "https://wiki.sponsor.ajay.app/w/Filler_Tangent",
|
||||||
|
|||||||
Reference in New Issue
Block a user