From ff408e84cf7ad467a13784fd1132fb67e5fc5806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 15 Dec 2020 22:40:02 -0500 Subject: Hotkeys.js: Add muted 'm' key --- youtube/static/js/hotkeys.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'youtube/static/js') 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(); -- cgit v1.2.3