From 585038c902734425d5ebf1dd9669822be11a0879 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 20 Aug 2021 18:43:44 -0400 Subject: [PATCH] Close skip to highlight when changing videos --- src/content.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content.ts b/src/content.ts index 46a1a1c5..b9921a9c 100644 --- a/src/content.ts +++ b/src/content.ts @@ -252,6 +252,8 @@ function resetValues() { for (let i = 0; i < skipNotices.length; i++) { skipNotices.pop().close(); } + + skipButtonControlBar?.disable(); } async function videoIDChange(id) { @@ -727,6 +729,7 @@ function retryFetch(): void { //check if this video was uploaded recently utils.wait(() => !!videoInfo).then(() => { const dateUploaded = videoInfo?.microformat?.playerMicroformatRenderer?.uploadDate; + console.log(dateUploaded) //if less than 3 days old if (Date.now() - new Date(dateUploaded).getTime() < 259200000) {