Skip to content

Instantly share code, notes, and snippets.

@falms
Created September 14, 2011 11:34
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 falms/1216360 to your computer and use it in GitHub Desktop.
Save falms/1216360 to your computer and use it in GitHub Desktop.
(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