Skip to content

Instantly share code, notes, and snippets.

@DDHost
Forked from AhsanAyaz/appflashback-hack.js
Last active February 10, 2022 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DDHost/80bb6140906d23500b8152768b6d5fcd to your computer and use it in GitHub Desktop.
Save DDHost/80bb6140906d23500b8152768b6d5fcd to your computer and use it in GitHub Desktop.
Hack for appflashback.com but better and less lines
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")]);
@lassejlv
Copy link

lassejlv commented Feb 7, 2022

that's cool and more quick ahaha

@nomanpro
Copy link

Man, this is so quick!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment