Last active
April 29, 2023 09:26
-
-
Save sotayamashita/775fbb09f3b65967ce44252a66f011e0 to your computer and use it in GitHub Desktop.
Skip intro in Netflix automatically. Complete code is https://github.com/sotayamashita/auto-skip-x
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
/** | |
* https://github.com/sotayamashita/auto-skip-x | |
*/ | |
const observer = new MutationObserver((mutationList, observer) => { | |
const skipIntroButton = document.querySelector("button.watch-video--skip-content-button"); | |
if (skipIntroButton) { | |
skipIntroButton.click(); | |
} | |
}); | |
observer.observe(document, { | |
attributes: true, | |
childList: true, | |
subtree: true, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment