diff --git a/src/options.ts b/src/options.ts index 1ce1f05a..1836c6c3 100644 --- a/src/options.ts +++ b/src/options.ts @@ -50,6 +50,16 @@ async function init() { switch (option) { case "supportInvidious": invidiousOnClick(checkbox, option); + break; + case "disableAutoSkip": + if (!checkbox.checked) { + // Enable the notice + Config.config["dontShowNotice"] = false; + + let showNoticeSwitch = document.querySelector("[sync-option='dontShowNotice'] > label > label > input"); + showNoticeSwitch.checked = true; + } + break; } });