Last active
October 20, 2018 20:46
-
-
Save acoyfellow/332361db61b6a7793c92a61665ba7769 to your computer and use it in GitHub Desktop.
Click all "Follow" buttons on Twitter https://medium.com/@acoyfellow/mass-twitter-follow-without-3rd-party-software-96a83c3e7c69#.2vqzj9gmb
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
document.querySelectorAll('div.ProfileCard-actions > div > div > div > button').forEach(function(btn){ | |
var style = window.getComputedStyle(btn.querySelector('span.button-text.follow-text')); | |
if(style.display === 'block'){ | |
btn.click(); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment