mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
498 B
JavaScript
1 line
498 B
JavaScript
(()=>{return(e,i)=>{const t={w:".bilibili-player-video-web-fullscreen",t:".bilibili-player-video-btn-widescreen",r:".bilibili-player-video-btn-repeat",m:".bilibili-player-video-btn-volume .bilibili-player-iconfont-volume"};document.body.addEventListener("keydown",e=>{if(document.activeElement&&["input","textarea"].includes(document.activeElement.nodeName.toLowerCase())){return}const i=e.key.toLowerCase();if(i in t){console.log(i);e.stopPropagation();e.preventDefault();dq(t[i]).click()}})}})(); |