How vishnusivadasvs/instagramautofollower works
Project type and purpose
• This is a lightweight open-source JavaScript automation tool.
• Purpose: run in your browser console on Instagram pages to automatically click “Follow” on suggested or other users’ follower dialogs.
File structure
• Only one source file: Instagram-Auto-Follower.js
• No additional directories, build scripts or external services—everything runs client-side in the browser.
README for additional insights
• It describes two modes:
• suggested → runs on https://www.instagram.com/explore/people/suggested/
• othersfollowers → runs in any user’s followers pop-up
• You copy/paste the entire JS into the browser console and invoke FunctionMain(mode).
a. Main components
1. User’s Browser (Chrome/Firefox)
2. Browser Console & JavaScript Engine (V8, SpiderMonkey)
3. Instagram Web Page (DOM)
4. JavaScript Automation Logic (Instagram-Auto-Follower.js)
5. Instagram Backend API/Servers
b. Relationships & interactions
• User pastes script into Browser Console →
• Script attaches event loop timers to scan the DOM for “Follow” buttons →
• Script issues synthetic click events on those buttons →
• Browser sends HTTP POST requests to Instagram backend →
• Instagram backend responds, user is followed →
• Script tallies success/failure and repeats until the tab is closed.
c. Architectural patterns & design principles
• Client-side scripting only: no backend component in your repo.
• DOM polling or MutationObserver pattern to detect new buttons in a dynamically loaded UI.
• Rate-limit awareness: the script should respect delays between clicks to mimic human behavior.
d. Key technologies / libraries
• Vanilla JavaScript (ES6+)
• Instagram’s public web UI selectors & internal API endpoints (undocumented)
• Browser developer console