Skip to content

Instantly share code, notes, and snippets.

@lelouchB
Created July 13, 2019 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lelouchB/c56c47039b15a011ae213ac9e182b28a to your computer and use it in GitHub Desktop.
Save lelouchB/c56c47039b15a011ae213ac9e182b28a to your computer and use it in GitHub Desktop.
let liked = 0;
setInterval(() => {
let heart = document.getElementsByClassName('glyphsSpriteHeart__outline__24__grey_9'),
arrow = document.querySelector('.coreSpriteRightPaginationArrow');
if (heart[1]) {
heart = heart[1].parentElement;
likesd++, heart.click();
}
arrow.click();
console.log(`You've liked ${likesd} post(s)!`);
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment