Skip to content

Instantly share code, notes, and snippets.

@TechWithTy
Forked from jadeallencook/instalike.js
Created May 28, 2019 04:58
Show Gist options
  • Save TechWithTy/c5d929835909df45b65657f959a677ae to your computer and use it in GitHub Desktop.
Save TechWithTy/c5d929835909df45b65657f959a677ae 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);
@TechWithTy
Copy link
Author

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment