mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
only look for aria-hidden attributes rather than all attribute changes.
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user