├── README.md ├── index.js ├── insta-js-bot.gif └── unfollowScript.js /README.md: -------------------------------------------------------------------------------- 1 | # instagram-bot-javascript 2 | 3 | ![](insta-js-bot.gif) 4 | 5 | ## Follow script 6 | 1. Login to your instagram acount. 7 | 2. Go to suggestions list: https://www.instagram.com/explore/people/suggested/ 8 | 3. Open browser's console using inspect element. 9 | 4. Paste the JS script from index.js file to browser's console. 10 | 5. Press Enter and Boom -> Your automated BOT for following people is with you ! 11 | 12 | ## Unfollow script 13 | 1. Login to your instagram acount. 14 | 2. Go to suggestions list: https://www.instagram.com/{username}/following/ 15 | 3. Open browser's console using inspect element. 16 | 4. Paste the JS script from unfollowScript.js file to browser's console. 17 | 5. Press Enter and Boom -> Your automated BOT for unfollowing people is with you ! 18 | 19 | ### Give this repository a Star ❤️ 20 | 21 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | (() => { 2 | let i = 0; 3 | const followInterval = setInterval(() => { 4 | if (i >= 30) { 5 | clearInterval(followInterval); 6 | return; 7 | } 8 | const buttons = document.querySelectorAll('button'); 9 | const nextButton = buttons[i]; 10 | nextButton.click(); 11 | i ++; 12 | }, 1000); 13 | console.log("intervalID => ",followInterval); 14 | })(); 15 | -------------------------------------------------------------------------------- /insta-js-bot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayushkul/instagram-bot-javascript/43e47cbd1a1754b5da175a2fd1722224ab4472a6/insta-js-bot.gif -------------------------------------------------------------------------------- /unfollowScript.js: -------------------------------------------------------------------------------- 1 | (() => { 2 | let i = 0; 3 | let count = 0; 4 | const unfollowInterval = setInterval(() => { 5 | if (count >= 20) { 6 | clearInterval(unfollowInterval); 7 | return; 8 | } 9 | let list = document.querySelectorAll('button'); 10 | for(let btn of list) 11 | { 12 | if(btn.innerText === 'Unfollow'){ 13 | btn.click(); 14 | console.log('Unfollowed'); 15 | count++; 16 | } 17 | } 18 | if (list[i].innerText === 'Following') { 19 | list[i].click(); 20 | } 21 | i++; 22 | }, 4500); 23 | console.log("intervalID => ",unfollowInterval); 24 | })(); 25 | --------------------------------------------------------------------------------