Created
February 13, 2021 15:18
-
-
Save AndersDJohnson/8cddd138d8b413cc5c15db6707b5b6e3 to your computer and use it in GitHub Desktop.
This file contains 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 $ = document.querySelector.bind(document) | |
do { | |
$('.remove-ad').click() | |
await new Promise(r => setTimeout(r, 1000)) | |
$('.btn--wide').click() | |
await new Promise(r => setTimeout(r, 3000)) | |
next = $('.remove-ad') | |
} while (next) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Self-code review: Could make this cleaner someday if web gets the new Node.js v16 Timers Promises API! 🙏 😍
await setTimeout(1000)