Instagram auto like account’s posts script

Instagram auto like account’s posts script

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:

  1. Go to the Instagram page of the account
  2. Open one post
  3. Open the Console pressing Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac) 
  4. Copy the code below and paste it into the Console tab 
  5. 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.

Buy me a coffeeWanna support the page?!

Did you like this? Share it!

15 comments on “Instagram auto like account’s posts script

Your script for auto follows is not working. 🙁

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.

There is an error “Uncaught TypeError: Cannot read property ‘click’ of undefined” on line 17 “btn[0].click();”. Thank you!

Hi, it should work fine. You need to go the the page and open one post so it can do the work.

Awesome

There is an error…..

VM116:16 Uncaught TypeError: Cannot read property ‘parentElement’ of undefined
at :16:9

THANK YOU SO MUCH!!!

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?!

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!

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?!

Unfortunately the same error message. What a pity!

Hi, Make sure you followed the steps and it should be fine.

VM5621:17 Uncaught TypeError: Cannot read property ‘parentElement’ of undefined
at :17:9

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?!

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!!!

Leave Comment