Last active
May 8, 2022 10:30
-
-
Save Gesugao-san/7a0004b093325a38ee7a738ee5381ced to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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