aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-15 22:40:02 -0500
committerJesús <heckyel@hyperbola.info>2020-12-15 22:40:02 -0500
commitff408e84cf7ad467a13784fd1132fb67e5fc5806 (patch)
treedfd4a0630dd5d648eb3b777cff81bcafb1b6ec02
parent97f00efa8aea3b9a7f0fc38335c21450bd6f6038 (diff)
downloadyt-local-ff408e84cf7ad467a13784fd1132fb67e5fc5806.tar.lz
yt-local-ff408e84cf7ad467a13784fd1132fb67e5fc5806.tar.xz
yt-local-ff408e84cf7ad467a13784fd1132fb67e5fc5806.zip
Hotkeys.js: Add muted 'm' key
-rw-r--r--youtube/static/js/hotkeys.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js
index 8c08c11..b325e39 100644
--- a/youtube/static/js/hotkeys.js
+++ b/youtube/static/js/hotkeys.js
@@ -29,6 +29,10 @@ function onKeyDown(e) {
if (document.fullscreen) document.exitFullscreen();
else v.requestFullscreen();
}
+ else if (c == "m") {
+ if (v.muted == false) {v.muted = true;}
+ else {v.muted = false;}
+ }
else if (c == "c") {
e.preventDefault();
let tt = getActiveTranscriptTrack();