Skip to content

Instantly share code, notes, and snippets.

@jadeallencook
Last active March 15, 2024 01:15
Show Gist options
  • Star 55 You must be signed in to star a gist
  • Fork 23 You must be signed in to fork a gist
  • Save jadeallencook/139a3d5f9291c2d612d91c8b8c72a755 to your computer and use it in GitHub Desktop.
Save jadeallencook/139a3d5f9291c2d612d91c8b8c72a755 to your computer and use it in GitHub Desktop.
instagram autolike script
let likes = 0;
setInterval(() => {
const heart = document.querySelector('svg[aria-label="Like"][width="24"]');
const arrow = document.querySelector('svg[aria-label="Next"]');
if (heart) {
heart.parentNode.parentElement.click()
likes++;
console.log(`You've liked ${likes} post(s)`);
}
arrow.parentElement.parentElement.click();
}, 20000);
/*
let likes = 0;
setInterval(() => {
const heart = document.querySelector('svg[aria-label="Like"]').parentNode;
const arrow = document.querySelector("a.coreSpriteRightPaginationArrow");
if (heart) {
heart.click();
likes++;
console.log(`You've liked ${likes} post(s)`);
}
arrow.click();
}, 5000);
*/
@zone0119
Copy link

zone0119 commented May 8, 2023

Hello, I wrote some code you can use https://github.com/zone0119/instalike

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