From 28ef256c4067cbad67e3ad2d432c5de47461ea43 Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Wed, 10 Aug 2022 07:56:24 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=99=20on=20redirect=20pause=20the=20vi?= =?UTF-8?q?deo=20directly=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/ytContent.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx index 21e1d20..824e8e4 100644 --- a/src/scripts/ytContent.tsx +++ b/src/scripts/ytContent.tsx @@ -340,11 +340,7 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa const lbryURL = getLbryUrlByTarget(target) if (source.type === 'video') { - // As soon as video play is ready and start playing, pause it. - findVideoElementAwait(source).then((videoElement) => { - videoElement.addEventListener('play', () => videoElement.pause(), { once: true }) - videoElement.pause() - }) + findVideoElementAwait(source).then((videoElement) => videoElement.pause()) } if (target.platform === targetPlatformSettings.app) {