On Instagram, you might have sent too many requests to others and you may not know which all have been still pending as requests and might want to cancel it. Don't worry Instagram now allows you to see the accounts you have requested to follow and still pending without accepting or canceling.





On the Instagram app, go to Settings > Security > Access Data > Current follow requests.

Now you can see a list of accounts having pending requests you have sent.





To cancel these requests manually you 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.





But you can automate this process using JavaScript. For that go to this page on your PC browser. ( https://www.instagram.com/accounts/access_tool/current_follow_requests ).





Make sure yo have allowed Pop-ups for this site on your browser. If not allow Pop-ups for this site.

To allow Pop-ups on Chrome and Mozilla follow the steps on the links.





If you have more than 10 requests pending, there will be a View More button But Don't Click it. It's because Instagram doesn't allow more than about 10 requests(might be 12 or 13) to be canceled or unfollowed at once even if you are doing it manually just refresh the page after you cancel the request or unfollow after this limit you will see that it's not done.





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.

let i=0; var unfollow="global"; var final="global"; var link=["link","link2"]; var proWindow=[""] proWindow.length=0 link.length=0; var ids = document.querySelectorAll(".-utLf"); for(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]); }





Now click Enter to run the code. Now you will see all the accounts opened on separate tabs on your browser. After all the tabs of the account have been loaded completely, 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 and see the message "Completed displayed" on your console window. Now go through the account tabs which have opened before to see all them unfollowed or canceled the request.