Created
May 10, 2021 09:48
-
-
Save CatalinPlesu/be5606ad82569127ddb29042e05caaac to your computer and use it in GitHub Desktop.
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 sleep(ms) { | |
| return new Promise((resolve) => setTimeout(resolve, ms)); | |
| } | |
| let wait = 500; | |
| let next = document.querySelector(".coreSpriteRightPaginationArrow"); | |
| while (next) { | |
| await sleep(wait * 3); | |
| heart = document.querySelector(".fr66n > .wpO6b"); | |
| { | |
| if (heart) | |
| if (heart.children[0].children[0].innerHTML.indexOf("#262626") != -1) | |
| heart.click(); | |
| else { | |
| heart.click(); | |
| heart.click(); | |
| } | |
| } | |
| await sleep(wait); | |
| next = document.querySelector(".coreSpriteRightPaginationArrow"); | |
| if (next) next.click(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment