-
-
Save DDHost/80bb6140906d23500b8152768b6d5fcd to your computer and use it in GitHub Desktop.
Hack for appflashback.com but better and less lines
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
function hack(arry) { | |
arry.filter((item,index) => { | |
for(let i = index+1; !item.parentNode.parentNode.classList.contains("matched"); i++){ | |
if(item.textContent == arry[i].textContent && !item.parentNode.parentNode.classList.contains("flipped") && !arry[i].parentNode.parentNode.classList.contains("flipped")){ | |
item.click(); | |
arry[i].click(); | |
} | |
} | |
}) | |
}; | |
hack([...document.querySelectorAll(".card-inner")]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that's cool and more quick ahaha