Estimated reading time: 6 minutes
Time for an Instagram mass unfollow? Is your Instagram full of people that you have followed over the years and you just want a big clear out?
Following on from our guide about How to Mass Unfollow on Twitter, we had been asked how to carry out a bulk unfollow on Instagram using a similar method. It’s time to get rid of all those Instagram users’ accounts and inactive users and unfollow users that you no longer want spamming your Instagram feed.
You can download an Instagram unfollow app on your smartphone from the app store, but 9 times out of 10 they either don’t work or get you banned under the terms of service of Instagram.
Well, we have been working on this and we now have a solution to carry this out using nothing more than Google Chrome and a bit of clever code. This is a slow method of unfollowing users but that’s the whole point, leave it running overnight and eventually you will have completed your unfollowing without getting your account banned.
Instagram Code Update
You may have noticed that the code that we had in this guide since we wrote it back in January 2017 had ceased to work. This is because the likes of Instagram are constantly updating their algorithms to stop bots and code running on their sites.
It has only recently been brought to our attention that the code in this guide had stopped working and when we found out, we started working on finding code that will work. Having spent a few days searching Google, we have finally put some code together from various methods from a number of sites that we have tested and confirmed (as of posting this update!) is fully working.
It consists of two much larger pieces of code so we will add them as text files to download rather than posting the whole code. Whilst we are updating this post, we have also updated the screenshots and recorded a video to show it working in full.
The Slow Unfollow Method
Be aware that this process is not a speedy one. Before you go any further and get all frustrated and leave negative comments, this process is designed to lowly unfollow people as to not trigger the 403 error which will make Instagram think that you are a bot. So it will slowly unfollow one account every 60 seconds. Instagram tools let you automate these tasks as well and they are always worth a try to avoid the slow manual methods.
This means that this process is designed to be left to run for some time, overnight, over a weekend – depends how many accounts you want to unfollow.
You can go ahead and make changes to the script – you can change this line in the unfollow.txt file that you will download, to amend the seconds – 60 * 1000 = 60 seconds:
let step = 60 * 1000;
But you do this at your own risk and don’t blame us if you get banned from Instagram!
Video Walk Through
We have created a walk-through of the below process to show it in full working order. The video may help you understand what script goes where and shows the outcome which is accounts being unfollowed!
If you watch the video, you might get a bit bored from the start of the unfollow process. It goes through to unfollowing three accounts which is three minutes of nothingness really, but it shows you exactly how it will work so you can just skip the last bit.
We suggest that you follow the written instructions below very care though, the video is just a guide.
Instagram Mass Unfollow Instructions
First of all, you will need to be using Google Chrome as your computer internet browser. Then login to the account that you want to Instagram mass unfollow on.
When you have successfully logged into your Instagram account, click on the little man icon at the top right of the page:
This will then take you to your own profile page. You should see your following number, you should now click this:
This will bring up a pop-up of all the people you are following:
Once you are here, you should now press CTRL+SHIFT+J – this will now bring up the console to the right side of your Google Chrome browser and should look similar to this:
Instagram Mass Unfollow Code
You should then enter two pieces of code – however, one must be done before the other, do not try to run all in one go. First of all, download the text files below:
Download
Then copy and paste the contents of the start.txt file into the console and press the Enter key on your keyboard to execute:
You should notice that underneath the script you have just run, true appears as in the above screenshot.
Then copy and paste the contents of the unfollow.txt file you have downloaded into the console underneath the true statement:
This should then start the process of Instagram mass unfollow:
Note that the error:
Uncaught ReferenceError: jqueryScript is not defined at <anonymous>:42:54
Just ignore this, as you can see, the process starts and continues regardless of this error message.
Depending on how many people you want to unfollow, you may hit Instagram’s limits – if you do, just re-run the above.
Credits
Please be aware that these are scripts that are not written by us. It is a combination of a number of scripts across various Googled sites and we have no idea where it is from! If you feel any of these scripts are yours, please leave us a comment below and we will credit you for it!
Feedback
If you have any feedback or queries on this guide, we would love to hear from you, so please feel free to leave us a message below and we will try to answer as soon as we can.
Share this content:
Hello, Thanks for the post.
The first time I used, it’s very good.
Howver, when I keep pasting and running the code, they are noted in red:
VM56:1 Uncaught SyntaxError: Identifier ‘unfollowButtonText’ has already been declared
at :1:1
Can you let me know how to fix it?
Looks like Instagram have changed something which is stopping this working. I’ll look into something else, may be able to get it working with iMacros, so keep checking back for updates or subscribe to the blog and you will get an email when new posts are added.
Thanks.
Help me please:
“Error: no Following buttons found, maybe change the text the button?”
help please: Error: no Following buttons found, maybe change the text the button?
Workin buddy. thxs
help please
VM41:42 Uncaught ReferenceError: jqueryScript is not defined
at :42:54
(anonymous) @ VM41:42
99f662369162.js:77 [Violation] ‘setTimeout’ handler took
SyntaxError: ‘button:contains(‘Following’)’ is not a valid selector debugger eval code:3
Check the syntax – sometimes the ‘ ‘ and the ” ” do not copy and paste very well, any symbols like let, delete and manually type – then try again.
We have now updated this post with the new latest code that will work with the latest Instagram algorithms.
Great job guys!
Thanks, glad it worked for you.
not working 🙁
Bit more info on why it is not working for you and we might be able to solve your problems.
We have now updated this post with the new latest code that will work with the latest Instagram algorithms.
If you could help me unfollow 4,000, I can pay you through paypal. My gmail is dara288 I can not get the code to work. My account got hacked when I joined one of those softwares where you can automatically have photos post to your Instagram account. That is how I ended up following people I do not even know. Thanks.
We have now updated this post with the new latest code that will work with the latest Instagram algorithms.
its running but it’s not deleting anyone
We have now updated this post with the new latest code that will work with the latest Instagram algorithms.
Woooooooow you are the best i love you guys
window.setInterval(function(){
var x = 0;
$(“button:contains(‘Seguido’)”).each(
function(){
if(x==14) {
console.log(‘Llegamos a 14. Ahora esperamos 700 segundos.’);
return false;
}
$(this).trigger(“click”);
$(‘._gs38e’).scrollTop($(‘._gs38e’)[0].scrollHeight);
x++;
console.log(‘Vamos por el’ + x);
}
);
$(‘._gs38e’).scrollTop($(‘._gs38e’)[0].scrollHeight);
console.log(‘Loop’);
}, 700000);
Uncaught TypeError: Cannot read property ‘scrollHeight’ of undefined
at :11:39
We have now updated this post with the new latest code that will work with the latest Instagram algorithms.
life saver rep +1
Amazing thanks for this 😉
this isnt working..the instagram have a limit unfollow ..
We have now updated this post with the new latest code that will work with the latest Instagram algorithms.
Hi,
Not working for me, it looks like it’s working in the left window but doesn t unfollow anybody.
Is it still running? or maybe the language of google chrome?
Do you have any idea?
We have now updated this post with the new latest code that will work with the latest Instagram algorithms.
How do I make the loop stop ?
it’s working great, thank you so much for your work.
how can i edit the waiting time between the unfollowng ?
can you help me here ?
i want to make 5 seconds between every single unfollow !
PLEASE HELP ME </3
and thank you <3
No, it just takes some time.
it doesn’t works for me :c
it runs normally, but do not unfollow no one, and just continuous runing the loop.
what should i do?
maybe the language? mine’s brazlian
Same thing happens to me—it keeps running errors and doesn’t unfollow anyone.
Can you post a screen shot of the errors you are getting?
Can you post a screen shot of the errors you are getting?
i changed my language for us, so it’s showing ‘following’
here’s the ss: http://i.imgur.com/X9q3YWi.png
you need to change the class name in script
how?
Dude Thank you~! 1337 H@x legit shit!
No problem, thanks for the feedback and glad it helped.
yeah saved my life bro
Visitor Rating: 5 Stars
This is great, saved me so much time. Is there a way to change the script so it follow users. I tried to change the text from “following” to “follow” but it doesn’t seem to follow the users in the pop-up I want to follow.
Glad it helped, we haven’t tested it with following as you can get banned for that….
not able to paste it in my console
Try copy with CTRL+C and paste with CTRL+V
you noob just follow directions
I found that I could do 15 at a time by manual testing (so change ‘if(x==3)’ to ‘if(x==15)’ every 700 seconds (so change the last line in the second script from ‘}, 1000);’ to ‘}, 700000);’
600 seconds (10 minutes) was not long enough. The second loop would return errors. 700 seconds was stable. It also tends to only delete 10 at a time unless you scroll the Following window down to trigger loading of more entries. With that step it would delete 15 each iteration.
Successfully deleted a couple of thousand users by letting it run for two days.
Thanks for the feedback….
Hello, thanks for sharing. I also need to unfollow a couple thousands but it did not work how you said , I just changed the if(x==3)’ to ‘if(x==15)’ and also last line in the second script from ‘}, 1000);’ to ‘}, 700000);’ as you mentioned. Do I need to do anything else ?
Thanks.
may you post the full code in here please ??.
thanks.
What full code? its in the guide above?
He wants the full code of mohamad where he is changing parts of the code allowing him to unfollow few thousand accounts. I’m also interested in full code, otherwise, code fails after 15 users.