Created
June 18, 2025 00:05
-
-
Save Ap0dexMe0/a4c770e4a133617ad070c966e41bcba4 to your computer and use it in GitHub Desktop.
Instagram Real Time Auto Unfollower
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (async function unfollowUsersSlowly() { | |
| const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
| const buttons = [...document.querySelectorAll('button')].filter(btn => btn.innerText.trim() === 'Following'); | |
| for (let i = 0; i < buttons.length; i++) { | |
| const btn = buttons[i]; | |
| btn.scrollIntoView({ behavior: "smooth", block: "center" }); | |
| btn.click(); | |
| console.log(`β‘ Prompting unfollow for #${i + 1}`); | |
| let attempts = 0; | |
| while (attempts < 10) { | |
| const confirmButton = document.querySelector('button._a9--._ap36._a9-_'); | |
| if (confirmButton && confirmButton.innerText.trim() === 'Unfollow') { | |
| confirmButton.click(); | |
| console.log(`β Unfollowed #${i + 1}`); | |
| break; | |
| } | |
| await delay(100); | |
| attempts++; | |
| } | |
| const okButton = document.querySelector('button._a9--._ap36._a9_1'); | |
| if (okButton && okButton.innerText.trim() === 'OK') { | |
| await delay(300); | |
| okButton.click(); | |
| console.log(`π Clicked OK after unfollow #${i + 1}`); | |
| } | |
| } | |
| console.log(`π Finished. Total unfollowed: ${buttons.length}`); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment