Skip to content

Instantly share code, notes, and snippets.

@Meshiest
Created February 9, 2017 02:56
Show Gist options
  • Save Meshiest/fdbd43ebd6899c9e357188e22ed05a23 to your computer and use it in GitHub Desktop.
Save Meshiest/fdbd43ebd6899c9e357188e22ed05a23 to your computer and use it in GitHub Desktop.
Groupme like bot annoyance
/*
* Paste in console (f12 or inspect element or ctrl-shift-c) while in a chat for maximum harassment
* People who sent the last 5 messages will get notifications constantly
*/
var j = 1;
function range(start, count) {
return Array.apply(0, Array(count))
.map(function (element, index) {
return index + start;
});
}
function startLiking() {
var hearts = $('.likes-container:not(.liked-by-me');
range(0, 5).forEach(i=>{
setTimeout(function(){
hearts[hearts.length-i-1].click();
}, i * 2000);
});
setTimeout(stopLiking, 15000);
}
function stopLiking() {
var like = $('.likes-container.liked-by-me').last();
if(like.length) {
like.click();
setTimeout(stopLiking, 2000);
} else {
console.log("ROUND",j++);
setTimeout(startLiking, 15000);
}
}
startLiking();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment