Skip to content

Instantly share code, notes, and snippets.

@falms
Created Sep 14, 2011
Embed
What would you like to do?
(1) Web Game
var m = eval(document.head.innerHTML.match(/\[.*\]/)+";");
for(i=0;i<m.length;i++){
if(m[i]==null){continue;}
document.getElementById('card'+i).click();
for(j=i+1;j<m.length;j++){
if(m[i]==m[j]){
document.getElementById('card'+j).click();
m[j]=null;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment