Skip to content

Instantly share code, notes, and snippets.

@CatalinPlesu
Created May 10, 2021 09:48
Show Gist options
  • Select an option

  • Save CatalinPlesu/be5606ad82569127ddb29042e05caaac to your computer and use it in GitHub Desktop.

Select an option

Save CatalinPlesu/be5606ad82569127ddb29042e05caaac to your computer and use it in GitHub Desktop.
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