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

30 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
  15. This important put up appears to be redeem a majority of customers. How would you market it? That it provides a fantastic one of a kind style directly on factors. My partner and i getting a specific product realistic or just sizeable furnish information on is a vital process. 메이저놀이터

    ReplyDelete
  16. of course we need to know our family history so that we can share it to our kids“ 안전놀이터

    ReplyDelete
  17. Your place is valueble for me. Thanks!? This web site is known as a stroll-via for all the info you needed about this and didn know who to ask. Glimpse here, and you l positively discover it. 토토사이트


    --------------------------------

    Appreciate it for this post, I am a big big fan of this internet site would like to continue updated. 청주출장마사지

    ReplyDelete
  18. Working but not always anyway thanks

    ReplyDelete
  19. You made some decent points there. I looked on the internet for your issue and located most people may go together with together with your web site. 토토사이트

    ReplyDelete
  20. This design is wicked! You definitely know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job. I really loved what you had to say, and more than that, how you presented it. Too cool! 토토사이트

    ReplyDelete
  21. Try my Selenium script to do the same thing: https://github.com/Suleman-Elahi/Cancel_Instagram_Follow_Requests

    Need Python on your PC.

    ReplyDelete
  22. Is that any HDMI code for unfollowing also?

    ReplyDelete
  23. The new Zune browser is surprisingly good, but not as good as the iPod’s. It works well, but isn’t as fast as Safari, and has a clunkier interface. If you occasionally plan on using the web browser that’s not an issue, but if you’re planning to browse the web alot from your PMP then the iPod’s larger screen and better browser may be important. [Reply] Kevin David

    ReplyDelete
  24. Pending Requests Script Updated 2020!

    SET !ERRORIGNORE YES
    SET !EXTRACT_TEST_POPUP NO
    SET !TIMEOUT_STEP 1

    SET !VAR1 {{!LOOP}}
    ADD !VAR1 1

    TAB T=1
    TAG POS={{!VAR1}} TYPE=DIV ATTR=CLASS:-utLf EXTRACT=TXT
    SET !VAR2 {{!EXTRACT}}

    SET !EXTRACT NULL

    TAB OPEN
    TAB T=2
    URL GOTO=https://www.instagram.com/{{!VAR2}}
    WAIT SECONDS=2

    TAG POS=1 TYPE=BUTTON ATTR=TXT:Requested
    WAIT SECONDS=2
    TAG POS=1 TYPE=BUTTON ATTR=TXT:Unfollow
    WAIT SECONDS=1

    TAB CLOSE


    Just copy and post it on Imacros extenson and then click play to start
    this works on both Chrome and Firefox
    :)

    ReplyDelete
  25. I have a lot of requests, but the company does not accept more than 15. Can you transfer it to the block, because the block is not specific

    ReplyDelete