Hack Forums
[Help] Modify Twitter Mass Blocker Script - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: [Help] Modify Twitter Mass Blocker Script (/showthread.php?tid=5332220)



Modify Twitter Mass Blocker Script - Reika - Jul 8, 2016

I found a working script that blocks and removes all 'egg' followers on Twitter.

Code
var unList = [];
alert("****************************************************************\n******************** @ClaytonnLambert **********************\n***************** http://blog.claytonn.com ******************\n****************************************************************\n > This process may take some time.\n > This tab will become unclickable while processing.\n > Open a new tab to browse Twitter.");
$('.ProfileCard').each(function(){
    if($(this).find('.ProfileCard-avatarImage').attr('src').indexOf("default_profile_images/default_profile") >= 0){unList.push($(this));    }});
unList.forEach(function(acc){
        if(($('.alert-messages .hidden'))){ $('.alert-messages').remove();}
        $(acc).find('.user-dropdown').trigger('click');
        $(acc).find('.block-text').find('.dropdown-link').trigger('click');
        $('.block-button').trigger('click');
});
alert("> Done! " + unList.length + " egg accounts removed! \n> This page may take some additional time to become responsive again.");

I'm looking for someone to modify this script to block all followers - not only those who have the egg avatar.

I'm sure this will be easy for someone who knows what their doing to modify but frankly I have no clue about scripting or programming.