YouTube focus player

YouTube focus player when an arrow key is pressed(exclude"textarea")

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
Leadra
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
13
คะแนน
0 0 0
เวอร์ชัน
2.0
สร้างเมื่อ
21-02-2025
อัปเดตเมื่อ
21-02-2025
Size
1.55 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

Always focuses the video player when up or down is pressed so it doesnt scroll the page but only controls volume.(exclude"textarea")

說明:
*按向上鍵或向下鍵時始終聚焦視訊播放器,因此頁面不會滾動而僅控制音量。
(文字輸入區除外)
*第一次按鍵聚焦,第二次按鍵才會改變音量
*若焦點在聊天室內,frame框架就不同了,無法自動跳回(https://*.youtube.com/live_chat)
*無法去除點了進度條的焦點,要裝下方另一腳本

PS.為修正原本腳本在文字輸入區也會啟用,造成無法正常輸入的BUG,引用下方腳本的排除代碼,等原腳本修正後,本腳本就會消失了

原腳本
https://greatest.deepsurf.us/zh-TW/scripts/499905

快速鍵翻頁腳本(引用代碼>排除文字輸入區)
https://greatest.deepsurf.us/zh-TW/scripts/465428

補強腳本:去除進度條焦點
https://greatest.deepsurf.us/zh-TW/scripts/532039

同類腳本推薦(可去除音量+進度條焦點)
YouTube arrow keys FIX
https://greatest.deepsurf.us/zh-TW/scripts/38643
(BUG:點暫停後會使音量調整數值變成10%,點控制列後恢復)

YouTube 箭頭鍵影片控制(可達成部分同樣效果)
https://greatest.deepsurf.us/zh-TW/scripts/503470

YouTube Theater Fill (Brave) — v3.3 clean + OSD
(全視窗音量控制,會自動載入劇場模式,可關閉)目前推薦這個
https://greatest.deepsurf.us/zh-TW/scripts/554496