Skip to content

Instantly share code, notes, and snippets.

@AliSawari
Last active February 18, 2025 18:39
Show Gist options
  • Save AliSawari/162d236acea96c5aa34377d6ba6964dd to your computer and use it in GitHub Desktop.
Save AliSawari/162d236acea96c5aa34377d6ba6964dd to your computer and use it in GitHub Desktop.
Bulk Remove Instagram[web] followers from account
var allBtns = document.getElementsByClassName('x1i10hfl')
var correctRemoveBtns = []
for(let el of allBtns){
if(el.textContent == 'Remove') correctRemoveBtns.push(el);
}
async function sleep(t){
return new Promise((res, _) => setTimeout(res, t))
}
async function removeFollower(elem){
return new Promise( async (res, rej) => {
elem.click();
await sleep(500);
let [confirmRemove] = document.getElementsByClassName('_a9--');
confirmRemove.click();
await sleep(1000);
res();
console.log("removed follower", elem);
})
}
async function main() {
for (let i of correctRemoveBtns) {
await removeFollower(i);
}
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment