Skip to content

Instantly share code, notes, and snippets.

@acoyfellow
Last active October 20, 2018 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save acoyfellow/332361db61b6a7793c92a61665ba7769 to your computer and use it in GitHub Desktop.
Save acoyfellow/332361db61b6a7793c92a61665ba7769 to your computer and use it in GitHub Desktop.
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