Last active
July 23, 2020 10:04
-
-
Save yazinsai/65144a42ce387de26eed14d1b662122a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const elemsIn = (tag, parent) => Array.from(parent.getElementsByTagName(tag)); | |
const speedUp = (v) => v.playbackRate = 2; | |
const videos = elemsIn('video', document); | |
const iframes = elemsIn('iframe', document); | |
videos.forEach(speedUp); | |
iframes.forEach((f) => elemsIn('video', f.contentWindow.document).forEach(speedUp)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment