mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
put div wrapper in the video's parent node light dom for correct context
This commit is contained in:
@@ -268,6 +268,8 @@
|
||||
// insert before parent to bypass overlay
|
||||
this.parent.parentElement.insertBefore(fragment, this.parent);
|
||||
break;
|
||||
case (location.hostname == 'tv.apple.com'):
|
||||
this.parent.getRootNode().host.prepend(fragment);
|
||||
|
||||
default:
|
||||
// Note: when triggered via a MutationRecord, it's possible that the
|
||||
@@ -551,6 +553,7 @@
|
||||
controller.classList.add('vsc-manual');
|
||||
controller.classList.toggle('vsc-hidden');
|
||||
} else if (action === 'blink') {
|
||||
console.log(controller)
|
||||
// if vsc is hidden, show it briefly to give the use visual feedback that the action is excuted.
|
||||
if(controller.classList.contains('vsc-hidden') || controller.blinkTimeOut !== undefined){
|
||||
clearTimeout(controller.blinkTimeOut);
|
||||
|
Reference in New Issue
Block a user