From a486a5f122811caaebbf23dc46e6f1681c72f4e1 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 21 Jan 2023 14:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E5=AF=B9=E5=90=8E?= =?UTF-8?q?=E7=BB=AD=E8=BD=BD=E5=85=A5=E7=9A=84=E8=A7=86=E9=A2=91=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E6=A0=87=E7=AD=BE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HTML5Volume.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTML5Volume.user.js b/HTML5Volume.user.js index ca0b9b9..502f34c 100644 --- a/HTML5Volume.user.js +++ b/HTML5Volume.user.js @@ -88,7 +88,7 @@ // 判断该视频/音频元素是否已监听事件 function isFirstEvent(target) { - //if (!target.controls) return; // 如果视频/音频已经有了自己的控件(即没有使用 HTML5 默认的控件),则退出 + if (!target.controls) return; // 如果视频/音频已经有了自己的控件(即没有使用 HTML5 默认的控件),则退出 modifyVolume(target); // 如果没有该属性,则代表是还未监听事件 if (target.dataset.html5VolumeXiu != 'true') {