mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
change the input for shadowMutations function
This commit is contained in:
@@ -409,7 +409,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var observer = new MutationObserver(function(mutations) {
|
function mutationCallback(mutations) {
|
||||||
// Process the DOM nodes lazily
|
// Process the DOM nodes lazily
|
||||||
requestIdleCallback(_ => {
|
requestIdleCallback(_ => {
|
||||||
mutations.forEach(function(mutation) {
|
mutations.forEach(function(mutation) {
|
||||||
@@ -425,7 +425,8 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}, {timeout: 1000});
|
}, {timeout: 1000});
|
||||||
});
|
}
|
||||||
|
var observer = new MutationObserver(mutationCallback);
|
||||||
observer.observe(document, { childList: true, subtree: true });
|
observer.observe(document, { childList: true, subtree: true });
|
||||||
|
|
||||||
if (tc.settings.audioBoolean) {
|
if (tc.settings.audioBoolean) {
|
||||||
@@ -445,9 +446,9 @@
|
|||||||
initializeWhenReady(childDocument);
|
initializeWhenReady(childDocument);
|
||||||
});
|
});
|
||||||
|
|
||||||
//look for video in shadowRoot
|
//look for video in shadowRoot for apple tv
|
||||||
if (document.querySelector('apple-tv-plus-player')) {
|
if (document.querySelector('apple-tv-plus-player')) {
|
||||||
console.log('Congratulations. There is the apple-tv-plus-player.')
|
shadowMutations('apple-tv-plus-player', mutationCallback, {childList: true, subtree: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
// start of ally.js/src/observe/shadow-mutations.js
|
// start of ally.js/src/observe/shadow-mutations.js
|
||||||
|
Reference in New Issue
Block a user