Code Monkey home page Code Monkey logo

instagramunfollowers's Introduction

Instagram Unfollowers

Maintenance

A nifty tool that lets you see who doesn't follow you back on Instagram.
Browser-based and requires no downloads or installations!

WARNING

This version utilizes the Instagram API for better performance.

Usage

Steps:

  1. Copy the following code from this url. (This has been moved to this site, because the repository was taking too long to load with so many characters.The web site only shows the compiled and minified code. )
  1. Press the COPY button to copy the code.

    Initial screen
  2. Once you have copied the code, you can close this page and go to the instagram website

  3. Log in into your account and open the developer console or (Ctrl+Shift+J(Windows) || ⌘+⌥+I (Mac os)) and paste the code.

  4. You will be met with the following interface:

Initial screen

  1. Click "RUN" to start scanning for users who do not follow you back.
  2. Once it finishes printing the users, you will be met with the following screen which will show you the results:

Results screen

  1. If you wish to un-follow any of these users, you can select 1 or more of them via the checkbox next to each user.

Notes

The more users you have to check, more time it will take

This script has been tested only on Chromium-based browsers

DEV

Node version: 16.14.0 (If using nvm use the comand "nvm use") When introducing new changes to main.tsx, make sure to run the "build" command in-order to automatically format, compress, and convert your code. (In the future will be automatic).

Legal

Disclaimer: This is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Instagram.

Use it at your own risk!.

instagramunfollowers's People

Contributors

danilloestrela avatar davidarroyo1234 avatar krishjainx avatar ruanaragao avatar sinasaeedi avatar tomleb3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instagramunfollowers's Issues

Only able to unfollow 5 at a time

Great work on this! The only thing is I am unable to follow more than 5 users, you will notice that after a subset of {5}, it stops working.
Screen Shot 2023-04-04 at 5 06 02 AM

Debugging connection was closed. Reason: Render process gone.

Summary

At larger amounts of followings(500+) on Edge and Chrome the tool appears to halt and crash.

System Environment

AMD Ryzen 5950x
RTX 3080
64GB Ram

Edge Version 107.0.1418.52 (Official build) (64-bit)

Screenshot

image

How to Reproduce

  1. Open Instagram and login to an account following more than 1000-2000 people
  2. Run code from dev terminal
  3. Wait until the amount searched approaches 1000
  4. An error should occur in terminal and the page should crash.

Suggested Fix

The ability to pause the search until root cause is found; so that unfollowers can be removed in chunks rather than in bulk.

api banned

API response {"message":"","spam":true,"status":"fail"}

Out of memory

Hi!
I'm trying to execute the script in the console and after a while I get an error.

Out of memory
debugging connection was closed reason render process gone.

How can I fix or prevent that? maybe there is an option to create a file with the usernames list instead of the GUI ?
Thanks.

Infinite loop?

The process of getting followers gets stuck like this:

Verifying: 2340/9899 people who follow you.
Verifying: 2351/9899 people who follow you.
Verifying: 2352/9899 people who follow you.
(2) Verifying: 2364/9899 people who follow you.
(2) Verifying: 2376/9899 people who follow you.
(2) Verifying: 2388/9899 people who follow you.
(2) Verifying: 2400/9899 people who follow you.
Verifying: 2412/9899 people who follow you.
872dff06bff6.js:75 GET https://www.instagram.com/graphql/query/?query_hash=5aefa98……Y0lWcWhmLTNRZzBRdExVdGtRc0xsSzl0eWlfSDBsZ1UwMzFEYTVJSlpRR0pYMw%3D%3D%22%7D 429
Verifying: 2412/9899 people who follow you.
872dff06bff6.js:75 GET https://www.instagram.com/graphql/query/?query_hash=5aefa98……Y0lWcWhmLTNRZzBRdExVdGtRc0xsSzl0eWlfSDBsZ1UwMzFEYTVJSlpRR0pYMw%3D%3D%22%7D 429
(15019) Verifying: 2412/9899 people who follow you.

Screenshot_20210327_075548
Screenshot_20210327_075610

can't select and unfollwing only one account at a time

been using your code for ages but today when i tried it , instead of done it showed me 101% and i couldn't select , so i went into dev tools and the button was disabled so i changed it to enabled and clicked on unfollow and it only unfollowed 1 account and stopped working

image
image

Request

You did subtract your followers, it works very well. Can you add removing your own followers which is the opposite of that?

Error 'undefined'

Today, March 26th, the Javascript code returns 'undefined' (tested on Google Chrome and Firefox on Linux).

Screenshot_20210326_200557

Execution Error “Unsafe Eval”

I have been using the code on Safari for iOS with a web inspector extension. The code used to function flawlessly, but I am now receiving this error:

—>>. Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src *.facebook.com *.fbcdn.net .facebook.net 127.0.0.1: 'unsafe-inline' blob: data: 'self' *.teststagram.com *.instagram.com static.cdninstagram.com *.google-analytics.com *.google.com 'wasm-unsafe-eval'".

value@webkit-masked-url://hidden/:27:185335
value@webkit-masked-url://hidden/:27:181621
@webkit-masked-url://hidden/:27:192383
r@webkit-masked-url://hidden/:6:28965
@webkit-masked-url://hidden/:6:29517

screenshot for reference:
D2560AA3-0BD0-4599-AF38-4431EA11F721

Change output message

In line 68 change

console.log(%c Sleeping 10 segs to prevent getting temp blocked, 'background: #222; color: ##FF0000;font-size: 35px;');

to

console.log(%c Sleeping 10 secs to prevent getting temp blocked, 'background: #222; color: ##FF0000;font-size: 35px;');

Unfollow list of usernames

Is it possible to inject a list of usernames by manipulating some global variable and then calling the unfollow function on it?

Follow

Could you write the code I need to unfollow not only the unfollowers, but also all the ones I follow?

Bug on "Select all" button

hello! how are you?

this is the first commit that I do for a code that is not of my authorship, so I hope it is well done and adequate, I accept corrections! haha

The bug I currently have is that the script gets to capture all the people I follow correctly but never gets to enable the "select all" button so I right clicked it, I inspected it and removed the "disabled" attribute and it worked correctly so I found the way to solve it and I wanted to leave it so that if someone else happens to someone else, I can solve it this way,

thank you very much, excellent code that you were doing, I congratulate you.

Update Readme.md

Need to update main readme.

  • New image examples
  • Add instructions for functionality such as whitelisting

Can't unfollow at the moment

Greetings everyone, I hope this message finds you in good health and spirits.
At the moment, the code works for finding who is not following my account, however when I select the boxes and try to click the Unfollow option, it doesn't work when I click on it.

Further suggestions & future plans

Hey @davidarroyo1234 👋🏼
Hope all is well with you.

First of, let me just say that I've enjoyed working on this tool, and thanks for adding me as a collaborator.
Ultimately I think the result came out good, the script was already very useful and now has a nice UI and everything.
I'd like to open a short discussion and get your thoughts on some stuff.

Currently, the weak point of the script IMO is the HTML template strings.
I used them since they we're the simpler option at the time, but they are bulky and difficult to read, which makes it harder not only for us, but also for new devs who would like to contribute and don't know the code.
Also, the more stuff we add, the messier it will get.

This is something that I would like to improve and be happy to take upon myself to work on whenever I have some spare time.
I would mainly like to discuss options for this and find out what you'll feel more comfortable with.

Here are some options that come to mind:

  • jQuery -> which would make things cleaner a little but is obsolete.
  • CSS in JS -> there are some ways to achieve this, and it will already improve things massively since the removed CSS clutter will make the template strings much easier to read.
  • JS frameworks -> I think this is a good option. Using something like React will allow writing JSX templates which are basically JavaScript. Vue & Svelte should be good options as well, assuming that the code can ultimately be exported as a single JS line.
    However, although some of these frameworks are very popular now, the main downside of using it is that their popularity will likely not last forever, unlike vanilla JS, which will probably still be used after humans colonize Mars 😆

Anyway, just some thoughts.
Please let me know which ideas you feel comfortable with, if any.
Also if you have any other ideas, I'm open for them.

P.S. - I actually have an idea of how to implement the unfollow-notification idea that was suggested in one of the issues.
And even relatively within the context of the script. Sort of.
But that's a conversation for another day.

Thanks again,
Tom.

Error on Mac

Hey,
I was trying to use this code on my mac terminal and got this error:
zsh: parse error near `}'
could anyone help me how to fix this issue?
Thanks,

Can't select all.

When using this code I used to be able to select all the users at once and unfollow them. But when the program loads everyone that does not follow me back, it now says "101%" instead of "done" at the bottom and it doesn't let me click the button to select every user and unfollow them.

Add option to pause searching, and remove disable button from select-all feature

With large accounts you get IP banned after searching through lots of profiles, so there needs to be an option to pause the searching and work with the data you currently have. If loading more profiles gets temporarily IP banned, you have to manually change the code to enable the select all button (which normally wont work until all profiles have been loaded) otherwise all progress is lost and the app won't start auto searching again when you enable a VPN or the IP ban expires.

account blocked ??

how many times can this be used until Instagram blocks the account under spam ?

Issues when compiling

Seems to give errors when compiling to js
image

Im using the default tsconfig.json and haven't changed anything either
image

Avoiding the ridiculous loading time of the repository's GitHub page

Hey @davidarroyo1234

I want to add some features but I can't risk making the code any larger.
You've seen how long it takes it to load the GH page.

With a good internet connection and PC it's bearable, but anything less and it becomes quite annoying.
Obviously this is due to the ~51k characters of code in the main Readme.md file.

So we've talked in the past about the solution of a bookmarklet / browser extension / etc...
They all have their pros and cons.

I thought about something simpler.
We can add an HTML template to the code, which contains the script, and render it like a CDN.
For example, here is the CDN link for jQuery - https://code.jquery.com/jquery-3.7.0.min.js

So basically an HTML page containing just the script and should therefor be rather snappy to load.
We can add a link to it in the main Readme and explain how to use it.
Basically the users would need to open the link, click the text 3 times which will automatically select all of it, and then copy and paste, same as before.

The site could be hosted on GH pages, which is free and would be part of this repo.

Let me know what you think :)

why there isnt any Sponsor button?

This project is beloved and i would love to support the creator/s and well done 👏🏽 but i also think perhaps its not reaching the end rather about ~400 pages/accounts that arent following back as was mentioned in an earlier ticket.

Unfollow not working

The program loads every single one who doesn't follow me, however when I select them and command to unfollow it doesn't work.

Window size.

If the window horizontal resolution is below 737px, it will enter "mobile mode" and will not work.

Select All option not working

when I select all and try to unfollow, it doesn't work. it only works when I select the accounts that do not follow, one by one.

it doesn't track all followers

It seems it doesn't scan all followers if you have a large amount of followers, yet when i use an other tool, there seems to be a lot of unfollowers left.

I got this error

Error on line 1:36993: ReferenceError: Can't find variable: location

"Next Page" Selection bug

When selecting everyone on the list with the "top tick", if you change page they are not selected anymore but the unfollow number stays the same, unless you now start selecting more people since they arent visually selected, you can make unfollow [x] higher than the actuall "non-followers". Was going to filter through and see who I'd like to keep but this bug keeps me from doing so

How to add user to white-list?

Hello and first of all, thanks for your work, it is really useful.

I need to add users to a White-list. How can I do it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.