From 30d9d40ecb2281beaef2b8c8c0fdc824b4a57929 Mon Sep 17 00:00:00 2001 From: Jonathan Dawson Date: Tue, 19 Nov 2019 19:08:14 -0600 Subject: [PATCH] put div wrapper in the video's parent node light dom for correct context --- inject.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inject.js b/inject.js index b344509..5fe378f 100644 --- a/inject.js +++ b/inject.js @@ -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);