Cancel Sent Follow Requests on Instagram using JavaScript

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.

As I have warned you earlier if you go doing this to all the time, you will find on refreshing the accounts that it has not been unfollowed. This is an Instagram algorithm to reduce scammers, even if you manually try to unfollow more than 10 or 12 accounts at a time it will not workout. 

DISCLAIMER

This tutorial post is just for educational and usage of it should be taken in your own risk. Using the above method may violate Instagram policies(as it changes overtime). I will not be responsible for any damages caused by the above method.

Jobin Jose

19 comments:

  1. after some account it stop and don't work any more can make one that block then unblock the account so it unfollow them even when it already stop you from unfollow others

    ReplyDelete
  2. Thank you so much for sharing amazing and informative article and i also want you to read happy valentines day

    ReplyDelete
  3. thank bro thanks for sharing a wonderful script

    ReplyDelete
  4. Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore. I will instantly grab your feed to stay informed of any updates. ルーレット

    ReplyDelete
  5. Replies
    1. Thank you for commenting. I have rechecked the code and it is properly working. Please check if you have mistyped.
      The common mistake people make is running the second code before all the pop up pages have completely loaded.
      I hope you get it right.

      Delete
  6. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. instagram girls

    ReplyDelete
  7. This action was blocked. Please try again later. We restrict certain content and actions to protect our community. Tell us if you think we made a mistake.

    ReplyDelete
  8. There are some wrongs in second code, but i cant understand why

    ReplyDelete
    Replies
    1. Thank you for commenting. I have rechecked the code and it is properly working. Please check if you have mistyped.
      The common mistake people make is running the code before all the pop up pages have completely loaded.
      I hope you get it right.

      Delete
    2. VM252:3 Uncaught TypeError: Cannot read property 'click' of null
      at :3:11
      (anonymous) @ VM252:3

      Delete
  9. very nice post, i undoubtedly adore this excellent website, carry on it Buy Instagram Likes and Followers Online

    ReplyDelete
  10. after Copy Paste of First step all new insta window open as page not found ?

    ReplyDelete
  11. Thanks for sharing such a useful article!

    ReplyDelete
  12. 2nd code is not working now. Its saying taht the action is blocked

    ReplyDelete
    Replies
    1. same here, 2nd code didn't work, after executing the 2nd code, it gave me the following error msg:
      VM552:3 Uncaught TypeError: Cannot read property 'click' of null
      at :3:11
      not sure where could be the problem sir ?

      Delete
  13. Hye, i have some problem. before this, i made a mistake do more than about 10 requests in same time. now i cannot run this method again. how to solve it ?

    ReplyDelete
  14. Hye, i have some problem. before this, i made a mistake do more than about 10 requests in same time. now i cannot run this method again. how to solve it ?

    ReplyDelete