Skip to content

Instantly share code, notes, and snippets.

@cdl
Last active August 29, 2015 14:20
Show Gist options
  • Save cdl/e47bb7c4b1f222e15e51 to your computer and use it in GitHub Desktop.
Save cdl/e47bb7c4b1f222e15e51 to your computer and use it in GitHub Desktop.
/**
* This is super janky, but it works. Head to:
* https://twitter.com/followers
* in Chrome, and bring up the web console with Command + Option + J.
*
* Scroll as far down as you want the script to block (it'll block every
* profile card that's visible on the page when you run it), scroll back
* to the top (for the hell of it), and then paste in this script into
* the web inspector and run it.
*
* Once done, refresh the page, watch your follower count go down,
* and repeat as necessary!
*
* I'm not responsible if this fucks something up.
* - @cdl
*/
var cards = $('.ProfileCard');
for (var i = 0; i < cards.length, i++) {
var card = $(cards[i]);
card.find('button.user-dropdown').click();
card.find('.block-text.not-blocked button').click();
$('button.block-button')[0].click();
});
@jadnco
Copy link

jadnco commented May 9, 2015

You could write a small bookmarklet.

javascript: (function() {
  $('.ProfileCard').each(function(k, v) {
    $(this).find('button.user-dropdown').click();
    $(this).find('.block-text.not-blocked button').click();
    $('button.block-button')[0].click();
  });
})();

Just stick that code into and anchor href and drag to your bookmarks bar.

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