From 2d7ad7cd27ae9811e1fd1332f57cd06601beeefe Mon Sep 17 00:00:00 2001 From: Lawrence Hook Date: Fri, 16 Jun 2023 13:46:16 -0400 Subject: [PATCH] refresh HTML attributes on new page loads --- src/content-script/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content-script/main.js b/src/content-script/main.js index c0e28ba..55d18ea 100644 --- a/src/content-script/main.js +++ b/src/content-script/main.js @@ -562,6 +562,9 @@ function handleNewPage() { // Mark whether or not we're on a video page HTML.setAttribute('on_video', onVideo); + // Refresh HTML attributes + Object.entries(cache).forEach(([key, value]) => HTML.setAttribute(key, value)); + // Homepage redirects if ( on &&