Skip to content

Instantly share code, notes, and snippets.

@Gesugao-san
Last active May 8, 2022 10:30
Show Gist options
  • Save Gesugao-san/7a0004b093325a38ee7a738ee5381ced to your computer and use it in GitHub Desktop.
Save Gesugao-san/7a0004b093325a38ee7a738ee5381ced to your computer and use it in GitHub Desktop.
// WARNING:
// "VK error: Действие временно невозможно, поскольку вы совершили слишком много однотипных действий за последнее время. #78101300"
var likesButtAll = document.getElementsByClassName("PostButtonReactions");
var likesButtToLike = [];
for (var i = 0; i < likesButtAll.length - 1; i++) {
if (likesButtAll[i].getAttribute("data-reaction-user-reaction-id") === null)
likesButtToLike.push(likesButtAll[i]);
}
for (var i = 0; i < likesButtToLike.length - 1; i++) {
likesButtToLike[i].click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment