We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb88803 commit 8635386Copy full SHA for 8635386
AddYouTubeShortcuts.user.js
@@ -9,6 +9,8 @@
9
// @updateURL https://raw.githubusercontent.com/kevduc/userscripts/master/AddYouTubeShortcuts.user.js
10
// @supportURL https://github.com/kevduc/userscripts/issues
11
// @include *
12
+// @exclude https://www.youtube.com/*
13
+// remove the line above if you want to run the script on YouTube
14
// @grant none
15
// @run-at document-end
16
// @icon https://www.google.com/s2/favicons?sz=128&domain=youtube.com
@@ -62,6 +64,7 @@
62
64
63
65
document.addEventListener('keydown', (e) => {
66
const video = closestSibling(document.activeElement, 'video')
67
+ if (video === null) return
68
const notifySpeed = (speed) => notify(`${speed}x`, 1500)
69
70
switch (e.key) {
0 commit comments