Last active
February 4, 2019 21:00
-
-
Save kamilkisiela/f44dd0fa8799d3c7270e1824861ad930 to your computer and use it in GitHub Desktop.
Install https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
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
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