Greasy Fork is available in English.

Youtube Spacebar Pause/Play Fix

A Youtube bug disables the space key shortcut, which often happens when you change windows and return to Youtube, often with the ALT + TAB shortcut. This script ensures that the spacebar PAUSE / PLAY shortcut works correctly.

< 腳本Youtube Spacebar Pause/Play Fix的回應

評論:OK - script works, but has bugs

§
發表於:2024-02-12

Also intercepts space in the search bar.

§
發表於:2024-02-24

Added line 80
const YoutubeSearchFieldSelector = '.ytd-searchbox';

Changed formerly line 100 now line 101 to
if (e.target.matches(YoutubeCommentFieldSelector) || e.target.matches(YoutubeSearchFieldSelector)){

§
發表於:2024-05-24

Yeah, I fixed that long ago but forgot to update it here sorry, it should work just fine now

And thank you TsukiZero that's what I did except I used #search instead, but it's the same 🥰

§
發表於:2024-05-25

It also intercepts the space input in the report section, now that I checked..

發表回覆

登入以回復