Skip to content

Instantly share code, notes, and snippets.



Last active Apr 29, 2021
What would you like to do?
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 });

This comment has been minimized.

Copy link

@EtoileFilante EtoileFilante commented May 7, 2020

Pas mal pas mal :D

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