Skip to content

Instantly share code, notes, and snippets.

@hashemsh
Forked from jadeallencook/instalike.js
Last active August 3, 2019 16:30
Show Gist options
  • Save hashemsh/c3f7894f257138b23a9f9f96e63a7bbc to your computer and use it in GitHub Desktop.
Save hashemsh/c3f7894f257138b23a9f9f96e63a7bbc 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)!`);
}, 10000);
@hashemsh
Copy link
Author

hashemsh commented Aug 3, 2019

time interval is better to be 10000 , to protect the instagram account about block ... like me

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