Skip to content

Instantly share code, notes, and snippets.

@t510599
Created October 11, 2019 16:26
Show Gist options
  • Save t510599/f9d1f8a161fd578d34e8ca3bfd393c2d to your computer and use it in GitHub Desktop.
Save t510599/f9d1f8a161fd578d34e8ca3bfd393c2d to your computer and use it in GitHub Desktop.
ani.gamer.com.tw skip ad
async function sleep(ms) {
return new Promise((res, rej) => {
setTimeout(() => { res() }, ms);
});
}
(async () => {
$('#adult').click();
await sleep(500);
$('.vast-skip-button').addClass('enabled');
await sleep(5000);
$('.vast-skip-button').click();
})();
@t510599
Copy link
Author

t510599 commented Oct 11, 2019

sleep(5000) 或許可以縮短一點

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment