Skip to content

Instantly share code, notes, and snippets.

@devlopersabbir
Last active December 4, 2024 16:36
Show Gist options
  • Save devlopersabbir/b82e6c824e4f7ee3bfec2e9cd69eadc5 to your computer and use it in GitHub Desktop.
Save devlopersabbir/b82e6c824e4f7ee3bfec2e9cd69eadc5 to your computer and use it in GitHub Desktop.
Instagram unfollowing bot. It is very simple and straightforward. I have used a very simple script here which you can easily master. I've made it so easy that anyone can do it on their own once they see it, which means they can create bots for Instagram.πŸ€—
setInterval(async function unfollow() {
const unfollowbuttons = document.getElementsByClassName(
"_acan _acap _acat _aj1- _ap30"
);
let index = 0;
if (unfollowbuttons.length <= index) return;
unfollowbuttons[index].click();
new Promise((resolve, _reject) => setInterval(resolve, 2000));
const btn = document.getElementsByClassName("_a9-- _ap36 _a9-_")[0];
if (btn) {
btn.click();
}
index++;
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment