Last active
July 18, 2026 21:35
-
-
Save RaulMedeiros/5337c13a05ec8e491cf7419d7cc19a48 to your computer and use it in GitHub Desktop.
SPEED 1.5X CRUNCHROLL
This file contains hidden or 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 SPEED = 1.5; | |
| function applySpeed() { | |
| const video = document.querySelector("video"); | |
| if (video) { | |
| video.playbackRate = SPEED; | |
| video.addEventListener("ratechange", () => { | |
| if (video.playbackRate !== SPEED) { | |
| video.playbackRate = SPEED; | |
| } | |
| }); | |
| } | |
| } | |
| applySpeed(); | |
| new MutationObserver(() => { | |
| applySpeed(); | |
| }).observe(document.body, { | |
| childList: true, | |
| subtree: true | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment