Create a gist now

Instantly share code, notes, and snippets.

@Nodws /click loop
Last active Feb 3, 2017

What would you like to do?
var inputs = document.querySelectorAll('a._42ft._4jy0._4jy3._517h');
for(var i=1; i<inputs.length;i++) {
var str =inputs[i].text, str2 ='Invite';
if(str.indexOf(str2) >= 0){inputs[i].click(); console.log('|');} }
Owner

Nodws commented Feb 3, 2017

//unfollow not loyal

$('.js-stream-item').each(function(i,v) {
var str = $(this).find('.FollowStatus');
if(!str.length){
$(this).find('.user-actions-follow-button').click();
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment