Skip to content

Instantly share code, notes, and snippets.

@kamilkisiela
Last active February 4, 2019 21:00
Show Gist options
  • Save kamilkisiela/f44dd0fa8799d3c7270e1824861ad930 to your computer and use it in GitHub Desktop.
Save kamilkisiela/f44dd0fa8799d3c7270e1824861ad930 to your computer and use it in GitHub Desktop.
function skipIntro() {
const el = document.querySelector('.skip-credits');
if(el) {
el.children[0].click();
setTimeout(() => {
const play = document.querySelector('.button-nfplayerPlay');
if (play) {
play.click();
}
}, 500);
}
}
var t;
function schedule() {
if (t) {
clearTimeout(t);
}
t = setTimeout(() => {
skipIntro();
schedule();
}, 500);
}
schedule();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment