Skip to content

Instantly share code, notes, and snippets.

@jonnymaceachern
Created February 15, 2017 22:19
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 jonnymaceachern/465bb3fa2223893840785fd90c2e82ec to your computer and use it in GitHub Desktop.
Save jonnymaceachern/465bb3fa2223893840785fd90c2e82ec to your computer and use it in GitHub Desktop.
javascript:function removeSubscriptions() { var subs = $('.subscription-box .remove.active'); subs.each( function(i, v) { setTimeout( function() { $(this).trigger('click'); console.log('Unsubscribing... (' + (i+1) + '/' + (subs.length + 1) +')'); }.bind(this), i * 500); }); } removeSubscriptions();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment