var guess = new Array(3); var temp = 0; guess[0] = 1; guess[1] = 2; guess[2] = 3; jQuery=$; function PlayGame() { if (jQuery('#worldCupAlert')!=null&&jQuery('#worldCupAlert').style.display != 'none') { jQuery('.closeBtn') .click();temp = 0; } if (jQuery("[data='matching']")!=null&&jQuery("[data='matching']").style.display != 'none') { jQuery("[data='matching']").click();temp = 0; } if (jQuery("[data='refight']")!=null&&jQuery("[data='refight']").style.display != 'none') { jQuery("[data='refight']").click();temp = 0; } if (jQuery("[data='getOther']")!=null&&jQuery("[data='getOther']").style.display != 'none') { jQuery("[data='getOther']").click();temp = 0; } if (jQuery('#worldcup-game-puzzle')!=null&&jQuery('#worldcup-game-puzzle').class != 'start') { jQuery('.hand' + guess[temp]).click(); if(temp==2){temp=0;prints();}else{temp++;}; } } i=setInterval("PlayGame()",1000); function prints(){console.log("ºïµºÓÎÏ·ÖÐÐÄתÔØ~")}