Last active
March 27, 2022 09:20
-
-
Save npanuhin/d4e08a227cac6894db6611eb6086896d to your computer and use it in GitHub Desktop.
VkusVill mango promocode cheat
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
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