From d38daa5ffa972689b0b6f1ab54f8c74ff98d51ee Mon Sep 17 00:00:00 2001 From: Jonathan Dawson Date: Fri, 15 Nov 2019 13:11:44 -0600 Subject: [PATCH] only look for aria-hidden attributes rather than all attribute changes. --- inject.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inject.js b/inject.js index f9b9ba8..b344509 100644 --- a/inject.js +++ b/inject.js @@ -475,7 +475,11 @@ }); }, {timeout: 1000}); }); - observer.observe(document, { attributes: true, childList: true, subtree: true }); + observer.observe(document, { + attributeFilter: ['aria-hidden'], + childList: true, + subtree: true + }); if (tc.settings.audioBoolean) { var mediaTags = document.querySelectorAll('video,audio');