-
-
Save jadeallencook/139a3d5f9291c2d612d91c8b8c72a755 to your computer and use it in GitHub Desktop.
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); | |
*/ |
How can I activate the script. What exactly do i have to do?
Pre-condition: using a Computer not a Mobile/Smart Phone.
Open you Dev Tool and paste it in the console there. You can open the Dev Tool in the most Browsers with F12 or CTRL + SHIFT + I or J. Not Sure about the last one. I use Opera GX as Browser.
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. 🤷🏼♂️
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.
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);
How can I activate the script. What exactly do i have to do?