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);
*/
@tospi
Copy link

tospi commented Mar 8, 2023

In a instagram hashtag i click on a image and then I copied the code from devlillious in the console. But i get e error. 🤷🏼‍♂️

@PassCody
Copy link

PassCody commented Mar 8, 2023

In a instagram hashtag i click on a image and then I copied the code from devlillious in the console. But i get e error. 🤷🏼‍♂️

Can you try mine? But I need to warn you. Thouse Auto Like Scripts are Forbidden and can cause a permanently ban from Instagram. So be careful by using them.

Instagram is constantly evolving to prevent botting and scripting. Does the classes and IDs of Instagram call each other again and again.

@Lillious
Copy link

Lillious commented Mar 8, 2023

In a instagram hashtag i click on a image and then I copied the code from devlillious in the console. But i get e error. 🤷🏼‍♂️

I'm devlillious, just a new account for work.
My code most likely doesn't work anymore. It did at one point but like @PassCody stated, instagram is constantly evolving and changing their code.

@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