🏠 Home 

YouTube focus player

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


ติดตั้งสคริปต์นี้?
ผู้เขียน
Leadra
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
2
คะแนน
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://greasyfork.org/zh-TW/scripts/499905

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

同類腳本推薦
YouTube arrow keys FIX
https://greasyfork.org/zh-TW/scripts/38643
(BUG:點暫停後會使音量調整數值變成10%,點控制列後恢復)