Last active
February 18, 2025 18:39
-
-
Save AliSawari/162d236acea96c5aa34377d6ba6964dd to your computer and use it in GitHub Desktop.
Bulk Remove Instagram[web] followers from account
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
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