()
| 89 | checkNext(); |
| 90 | } |
| 91 | function geneCodeArr(){ |
| 92 | var tempCode=[]; |
| 93 | codeArr.forEach(function(item){ |
| 94 | if(item.indexOf("*")!=-1){ |
| 95 | for(var char of codeChar){ |
| 96 | var tempItem=item.replace(/\*/,char); |
| 97 | if(tempCode.toString().indexOf(tempItem)==-1){ |
| 98 | tempCode.push(tempItem); |
| 99 | } |
| 100 | } |
| 101 | }else if(tempCode.toString().indexOf(item)==-1){ |
| 102 | tempCode.push(item); |
| 103 | } |
| 104 | }); |
| 105 | codeArr=[]; |
| 106 | while(tempCode.length>0){ |
| 107 | var random=Math.floor(Math.random()*tempCode.length); |
| 108 | var curCode=tempCode[random]; |
| 109 | codeArr.push(curCode); |
| 110 | tempCode.splice(random,1); |
| 111 | } |
| 112 | } |
| 113 | if(invitecode){ |
| 114 | var copiedCode=GM_getValue("copiedCode"); |
| 115 | if(copiedCode){ |
no outgoing calls
no test coverage detected