-
-
Save E3V3A/11192187 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var delay = 250; | |
var until = 'faux123'; | |
var a = new Array(); | |
$('button[class*=follow-btn]').each(function() { | |
var attr = $(this).parent().attr('data-screen-name'); | |
if (attr != undefined) { | |
if (attr == until) { | |
return false; | |
} | |
a.push(this); | |
} | |
}); | |
function unfollow() { | |
if (a.length == 0) { | |
'done!'; | |
return; | |
} else { | |
var button = a.pop(); | |
$(button).click(); | |
setTimeout('unfollow()', delay); | |
} | |
} | |
unfollow(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment