Skip to content

Instantly share code, notes, and snippets.

@michalbe
Created July 21, 2015 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michalbe/3338098a1926299673e3 to your computer and use it in GitHub Desktop.
Save michalbe/3338098a1926299673e3 to your computer and use it in GitHub Desktop.
twt follow
Array.prototype.slice.call(
document.querySelectorAll('.ProfileCard.js-actionable-user')
).forEach(function(card){
var img = card.querySelector('img');
if (img.src.indexOf('default') === -1) {
card.querySelector('.js-follow-btn').click();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment