Last active
October 6, 2024 11:49
-
-
Save jadeallencook/139a3d5f9291c2d612d91c8b8c72a755 to your computer and use it in GitHub Desktop.
instagram autolike script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
*/ |
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.
Hello, I wrote some code you can use https://github.com/zone0119/instalike
let likes = 0;
let autoLike = setInterval(() => {
const heart = document.querySelector('svg[aria-label="Like"]');
const arrow = document.querySelector('svg[aria-label="Next"]');
if (heart) {
window.scrollTo(0, document.body.scrollHeight);
heart.parentNode.click();
likes++;
console.log(`You've liked ${likes} post(s)`);
}
if (arrow) {
arrow.parentElement.click();
}
}, Math.random()*(5000-1000+1)+10);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.