Instagram auto like posts from hashtag

Instagram auto like script is an easy way to automatically like all posts from specific hashtag.

Thanks Xavier, for requesting this in the comments.

  1. Go to the Instagram and search for a hashtag
  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 posts from hashtag
 // Updated: 2020-05-23
 // 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, 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!

0 comments on “Instagram auto like posts from hashtag

Leave Comment