Instagram auto like script is a way to easy growth hack your Instagram portfolio.
Thanks Ellen, for requesting this in the comments.
How to use the script:
- Go to the Instagram page of the account
- Open one post
- Open the Console pressing Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac)
- Copy the code below and paste it into the Console tab
- Press Enter and wait
// Instagram: Auto Like
// Updated: 2020-03-24
// This script is made for demonstrative purposes only.
// Use at your own risk.
// Respect the Instagram's policy and terms of use.
function loop() {
console.log('Script loading…please wait…');
var Time1 = Math.ceil(Math.random() * 10) + 3;
var Time2 = Math.ceil(Math.random() * 10) + 3;
setTimeout(function() {
if ( document.querySelectorAll('svg[aria-label="Unlike"]')[0]) {
console.log('Skipping…');
} else {
console.log('Like the post…');
var btn = document.querySelectorAll('svg[aria-label="Like"]');
btn[0].parentElement.click();
}
setTimeout(function() {
if (document.querySelectorAll('a.coreSpriteRightPaginationArrow').length) {
console.log('Loading next post…');
var btn = document.querySelectorAll('a.coreSpriteRightPaginationArrow');
btn[0].click();
} else {
console.log('Reload the page and run the script again.!');
}
loop();
}, Time1 * 1000);
}, Time2 * 1000);
}
loop();
Hi you! If the code is working, leave a comment below. It means a lot to everyone.
15 comments on “Instagram auto like account’s posts script”
Leanna
Your script for auto follows is not working. 🙁
Milos Lukic
Are you sure, because I just checked it and all was OK.
Btw, this is not for auto follow, it’s for liking all posts of the specific acc.
BohdaN
There is an error “Uncaught TypeError: Cannot read property ‘click’ of undefined” on line 17 “btn[0].click();”. Thank you!
Milos Lukic
Hi, it should work fine. You need to go the the page and open one post so it can do the work.
SCSI
Awesome
Robert
There is an error…..
VM116:16 Uncaught TypeError: Cannot read property ‘parentElement’ of undefined
at :16:9
THANK YOU SO MUCH!!!
Milos Lukic
Hi, I just checked it and it works fine for me. You need to be on account page (Example: https://www.instagram.com/natgeo/) and have one post opened in popup?!
Ulrike
I thank you so much for your excellent work! Unfortunately, the script does not work. I get the following error message…
Uncaught TypeError: Cannot read property ‘parentElement’ of undefined
Thanks A Lot!
Milos Lukic
Hi, I just checked it and it works fine for me. You need to be on account page (Example: https://www.instagram.com/natgeo/) and have one post opened in popup?!
Ulrike
Unfortunately the same error message. What a pity!
Milos Lukic
Hi, Make sure you followed the steps and it should be fine.
tim
VM5621:17 Uncaught TypeError: Cannot read property ‘parentElement’ of undefined
at :17:9
Milos Lukic
Hi, I just checked it and it works fine for me. You need to be on account page (Example: https://www.instagram.com/natgeo/) and have one post opened in popup?!
nicolas xavier
Hello, do you think you can make a simple script for auto liking photos from a hashtag? i’m not sure if this is feasible since photos from hashtag opens in ‘theater’ mode. Thank you so much!!!
Milos Lukic
Hi man, thanks for the idea. Let me know if this is what you wanted: https://miloslukic.com/2020/05/22/instagram-auto-like-posts-from-hashtag/