Cancel FOLLOW REQUESTS sent on INSTAGRAM
Warning: You may violate Instagram policies(as it changes over time). May be Instagram disables your account.
You might have sent too many requests to others. Instagram allows you to see the accounts you have requested to follow.
On the Instagram app, go to Settings > Security > Access Data > Current follow requests. You can see a list of accounts.
To cancel these requests by yourself you will have to copy each Instagram ID and search for it. After finding the account of each person one by one you can cancel the request like we normally do.
Let’s automate this process using JavaScript. For that go to this page on your desktop browser. Always allow Pop-ups for this site on your browser.
If you have more than 10 requests pending, there will be a View More button. Instagram doesn’t allow more than 10 requests(might be 20–25, recommended about 12) to be cancelled or unfollowed at once even if you are doing it manually, so please Don’t Click the VIEW MORE button.
AUTOMATION WITH JAVASCRIPT
Open Inspect Element mode on your browser by right-clicking or by keyboard shortcut(F12).
Go to the console tab and paste the code given below:
var unfollow="global";
var final="global";
var link=["link","link2"];
var proWindow=[""]
proWindow.length=0
link.length=0;
var ids = document.querySelectorAll(".-utLf");
for(let i=0;i<ids.length;i++){
link.push('https://www.instagram.com/'+ids[i].innerText);
console.log(link[i]);
proWindow[i]=window.open(link[i]);
}
Click Enter to run the code. You will see the accounts are opened on separate tabs on your browser. After the tabs are loaded, and you can see Instagram favicon in each page, Paste the code below on the same console window below the first code.
for(i=0;i<ids.length;i++){
unfollow = proWindow[i].document.querySelector("button._8A5w5");
unfollow.click();
final = proWindow[i].document.querySelector(".aOOlW");
final.click();}
console.log("Completed");
Click Enter to run the code. When you see the message “Completed” in your console, go through the tabs which were opened to see all the sent requests are cancelled.
Note: If you are doing this process too often, you will be shadow banned by Instagram. It is an Instagram algorithm to reduce scammers. Even if you manually try to unfollow more than 10 or 12 people, it won’t work, Instagram may mark you as a bot and shadow ban you. If you like, comment too often Instagram would shadow ban you by not allowing you to like or comment for 24hrs - 78hrs. If you send too many follow request or unfollow request Instagram would automatically revoke sent request and wont let you see profiles.
Below links belong to the original author.
Original Post: Cancel Sent Follow Requests on Instagram using JavaScript | BROWzz (browzzweb.com)
Original Video: