Skip to content

Instantly share code, notes, and snippets.

@npanuhin
Last active March 27, 2022 09:20
Show Gist options
  • Save npanuhin/d4e08a227cac6894db6611eb6086896d to your computer and use it in GitHub Desktop.
Save npanuhin/d4e08a227cac6894db6611eb6086896d to your computer and use it in GitHub Desktop.
VkusVill mango promocode cheat
var layout = document.getElementById("app").getElementsByClassName("grid")[0];
var cards = layout.getElementsByClassName("card");
function next() {
var found = false;
for (var i = 0; i < cards.length; ++i) {
for (var j = 0; j < i && !found; ++j) {
if (
cards[i].getElementsByClassName("card__img")[0].src == cards[j].getElementsByClassName("card__img")[0].src &&
!cards[i].classList.contains("card--flipped") && !cards[j].classList.contains("card--flipped")
) {
console.log(cards[i], cards[j]);
cards[i].click();
cards[j].click();
found = true;
break;
}
}
}
if (found) setTimeout(next, 4000);
}
next();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment