File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
userscripts/youtube-speed-override Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 9
9
// @supportURL https://github.com/0xdevalias/userscripts/issues
10
10
// @downloadURL https://github.com/0xdevalias/userscripts/raw/main/userscripts/youtube-speed-override/youtube-speed-override.user.js
11
11
// @namespace https://www.devalias.net/
12
- // @version 1.0
12
+ // @version 1.2
13
13
// @match https://www.youtube.com/*
14
14
// @grant none
15
15
// ==/UserScript==
Original file line number Diff line number Diff line change 6
6
// @supportURL https://github.com/0xdevalias/userscripts/issues
7
7
// @downloadURL https://github.com/0xdevalias/userscripts/raw/main/userscripts/youtube-speed-override/youtube-speed-override.user.js
8
8
// @namespace https://www.devalias.net/
9
- // @version 1.1
9
+ // @version 1.2
10
10
// @match https://www.youtube.com/*
11
11
// @grant none
12
12
// ==/UserScript==
146
146
video . playbackRate -= 0.25 ;
147
147
}
148
148
149
+ // Always show the notification, even when we're at our min value
150
+ showSpeedChangeNotification ( ) ;
151
+ } else if ( e . shiftKey && e . code === 'Space' ) {
152
+ // Don't let the default YouTube handler run
153
+ e . preventDefault ( ) ;
154
+ e . stopPropagation ( ) ;
155
+
156
+ video . playbackRate = 1 ;
157
+
149
158
// Always show the notification, even when we're at our min value
150
159
showSpeedChangeNotification ( ) ;
151
160
}
You can’t perform that action at this time.
0 commit comments