Skip to content

Instantly share code, notes, and snippets.

@dimitrinicolas
Last active November 30, 2022 08:42
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimitrinicolas/0d0f9c57565e7dad976d4e80ed7a68bb to your computer and use it in GitHub Desktop.
Save dimitrinicolas/0d0f9c57565e7dad976d4e80ed7a68bb to your computer and use it in GitHub Desktop.
Speed up Netflix when nobody talks (needs subtitles enabled)
const speedRate = 2;
const subtitles = document.querySelector('.player-timedtext');
let observer = new MutationObserver(() => {
document.querySelector('video').playbackRate = subtitles.textContent
? 1
: speedRate;
}).observe(subtitles, { childList: true });
observer.disconnect();
@EtoileFilante
Copy link

Pas mal pas mal :D

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