Skip to content

Instantly share code, notes, and snippets.

@edykim
Last active September 26, 2021 19:03
Show Gist options
  • Select an option

  • Save edykim/0eb5c276e994453fa09f509cfc98561e to your computer and use it in GitHub Desktop.

Select an option

Save edykim/0eb5c276e994453fa09f509cfc98561e to your computer and use it in GitHub Desktop.
Zoom keyboard navigation extension
// ==UserScript==
// @name Zoom arrow key/space navigation
// @namespace https://edykim.com/
// @version 0.1
// @description Drag and drop on the quick links bar on the top.
// @author edykim
// @match https://*.zoom.us/*
// @icon https://www.google.com/s2/favicons?domain=zoom.us
// @grant none
// ==/UserScript==
(function(document) {
'use strict';
document.addEventListener('keydown', (event) => {
if (document.activeElement.nodeName.toLowerCase() === 'input') { return; }
const video = document.querySelector('video');
if (event.code === 'Space') video.paused ? video.play() : video.pause();
else if (event.code === 'Enter') document.fullscreenElement ? document.exitFullscreen() : video.requestFullscreen();
else if (event.code === 'ArrowUp') video.playbackRate += 0.1;
else if (event.code === 'ArrowDown') video.playbackRate -= 0.1;
else if (event.code === 'ArrowRight') video.currentTime += 15;
else if (event.code === 'ArrowLeft') video.currentTime -= 15;
});
})(document);
@edykim
Copy link
Author

edykim commented Sep 26, 2021

Zoom's recorded meeting does not provide proper navigation shortcuts. This script provides some shortcuts to navigate the video fast.

  • Space: Play / Pause
  • Enter: Toggle full screen
  • Right Arrow: Skip 15 sec. forward
  • Left Arrow: Skip 15 sec. backward
  • Up/Down Arrow: Adjust playback rate by 0.1x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment