Skip to content

Instantly share code, notes, and snippets.

@bayleedev
Created January 29, 2013 18:33
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 bayleedev/4666441 to your computer and use it in GitHub Desktop.
Save bayleedev/4666441 to your computer and use it in GitHub Desktop.
Do you "like" a lot of pretty images on tumblr? Add them to your queue to make your like list smaller!
jQuery('.post_control.reblog_button').each(function(i, el) {
setTimeout(function() {
// Buttons
reblogLink = jQuery(el);
unstarLink = reblogLink.next('a.like_button');
// Open Photo
jQuery(reblogLink).trigger('click');
// Clear like button
unstarLink.trigger('click');
setTimeout(function() {
// Add to queue
jQuery('#post_state').val(2);
// Reset text
jQuery('#post_two').val(null);
// Submit form
jQuery('#post_form').submit();
}, 500);
}, i * 5000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment