diff --git a/Youtube-Ad-blocker-Reminder-Remover.user.js b/Youtube-Ad-blocker-Reminder-Remover.user.js index 6e2a318..099f4bf 100644 --- a/Youtube-Ad-blocker-Reminder-Remover.user.js +++ b/Youtube-Ad-blocker-Reminder-Remover.user.js @@ -159,7 +159,7 @@ sponsor?.forEach((element) => { if (element.getAttribute("id") === "panels") { element.childNodes?.forEach((childElement) => { - if (childElement.data.targetId && childElement.data.targetId !=="engagement-panel-macro-markers-description-chapters") + if (childElement.data?.targetId && childElement.data.targetId !=="engagement-panel-macro-markers-description-chapters") //Skipping the Chapters section childElement.remove(); });