Skip to content

Instantly share code, notes, and snippets.

@parhammmm
Last active December 27, 2015 06:39
Show Gist options
  • Save parhammmm/7282903 to your computer and use it in GitHub Desktop.
Save parhammmm/7282903 to your computer and use it in GitHub Desktop.
// Twitter - favourite
function favorite(){$('.favorite:not(.favorited)').each(function(index){ var self = this; setTimeout(function () {$(self).trigger('click');$(self).parents('.tweet').remove();}, (index*1000)+Math.floor(Math.random() * 5000) + 1000); })};
// Twitter - follow
function follow(){$(".wtf-module").remove();$(".not-following .follow-button").each(function(index){var self=this;setTimeout(function(){$(self).trigger("click");$(self).parents(".stream-item").remove()},index*1E3+Math.floor(Math.random()*5E3)+1E3)})};
// Statigram - like pictures
function likePictures(){$els=$(".like_picto_unselected");if($els.length<1){$("body").animate({scrollTop:$("body").height()},1e3,function(){$els=$(".like_picto_unselected");if($els.length<1)return likePictures();$els.each(function(e){var t=this;setTimeout(function(){$(t).trigger("click");console.log("liked")},e*1e4+Math.floor(Math.random()*5e3)+1e3)})})}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment