Fake Twitter Follower Removal Script
by Clayton Lambert
About 3 months ago I released a Twitter Egg Follower removal script. Ever since, my YouTube comments, Email, and Skype have been filled with requests for a complete bot removal script. With my classes, work, other projects, and a slight lack of motivation, I decided to push it off and procrastinate. Yesterday, I wrapped up my last final and came straight home with good intentions to finish my script, however; my procrastination has lead to some unforeseeable issues.
I’m not sure if I should point my finger at Google or Twitter, but recent security measures implemented to prevent cross site scripting blocked a huge piece of functionality that my idea relied on.
My original idea was to pull each account on the page, stick them into an array, then attach an iFrame to the DOM so I could load data from each account and weight them based on post statistics. With the new Content Security Policy in place, inline scripts are not allowed to load in any data, and are pretty much restricted to DOM manipulation. Unfortunate, considering I had previously tested this idea and it worked flawlessly, but that’s not the end of the road. We still have plenty of data available to us in each user element on the followers page.
The New Script
Disclaimer: The script is not perfect, there are false positives. Use at your own discretion.
Admittedly, the new script flails in comparison to the original idea. My first runs with the original script were almost 95% accurate in detecting fake accounts. With the new idea implemented, we see accuracy resting somewhere around 70 – 75%. It really all depends how “real” the fake accounts appear to be.
This script isn’t the end all to fake followers like I had intended it to be. Instead, it’s something entirely new. This script could be considered an “account legitamitizer”. It doesn’t get rid of all fake followers, but it does remove the obvious ones giving your Twitter account the appearance of real followers even though we know that’s not true.
How To Use
Go to https://twitter.com/followers/ in Google Chrome.
Right Click the page and click “Inspect Element”. Inside that window find and click the “Console” tab.
Copy the script, and paste it into the Console. Then press Enter and the script will begin to run.
After the script is ran an alert box will popup, please read the small message so you understand what is happening with the tab.
At this point all you have to do is let the script do it’s thing. The page will auto scroll up and down to load in more followers. If for some reason the script gets stuck, simply reload the page and run the script again.
This isn’t the script that I meant to make, but it’s something that I believe a lot of people will find useful. I will continue to try and find a way to get my original idea to work, however; the outlook does not look promising at the moment.
If you come across an issue with the script, let me know either here in the comments or tweet @ClaytonnLambert. Twitter periodically updates things like class names on the elements and it breaks my scripts. It’s usually a quick fix, so just give me a heads up and I can update it.