From caae61a6a89a393a6308d52f3c57875b05f48b52 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 18 Jul 2021 15:05:47 -0400 Subject: [PATCH] Clear all skip notices when changing videos Closes https://github.com/ajayyy/SponsorBlock/issues/726 --- src/content.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content.ts b/src/content.ts index f06513ce..96c41cab 100644 --- a/src/content.ts +++ b/src/content.ts @@ -241,6 +241,10 @@ function resetValues() { // Reset advert playing flag isAdPlaying = false; + + for (let i = 0; i < skipNotices.length; i++) { + skipNotices.pop().close(); + } } async function videoIDChange(id) {