Skip to content

Instantly share code, notes, and snippets.

@dimitrinicolas

dimitrinicolas/index.js

Last active Apr 29, 2021
Embed
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 });
observer.disconnect();
@EtoileFilante

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