From 1eb21eb51fe92f2be1895b972bd2a0f8ce62c51e Mon Sep 17 00:00:00 2001
From: Shiba <44804845+DeepDoge@users.noreply.github.com>
Date: Wed, 6 Jul 2022 13:10:32 +0000
Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=99=20made=20yt=20video=20pause,=20sin?=
=?UTF-8?q?ce=20we=20use=20new=20tab=20now?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/scripts/ytContent.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx
index 91d3ba9..4d41de4 100644
--- a/src/scripts/ytContent.tsx
+++ b/src/scripts/ytContent.tsx
@@ -49,7 +49,11 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa
fontSize: '14px',
textDecoration: 'none',
...target.platform.button.style?.button,
- }}>
+ }}
+ onClick={() => findVideoElementAwait().then((videoElement) => {
+ videoElement.pause()
+ })}
+ >
{target.platform.button.text}