Skip to content

Instantly share code, notes, and snippets.

@EliasOPrado
Forked from jadeallencook/instalike.js
Created June 23, 2019 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EliasOPrado/78ce73d4502b5ab66405f742b38fd9ee to your computer and use it in GitHub Desktop.
Save EliasOPrado/78ce73d4502b5ab66405f742b38fd9ee to your computer and use it in GitHub Desktop.
Scripts that auto likes posts on instagram via tag.
let likesGiven = 0;
setInterval(() => {
let heart = document.getElementsByClassName('glyphsSpriteHeart__outline__24__grey_9'),
arrow = document.querySelector('.coreSpriteRightPaginationArrow');
if (heart[1]) {
heart = heart[1].parentElement;
likesGiven++, heart.click();
}
arrow.click();
console.log(`You've liked ${likesGiven} post(s)!`);
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment