超qd代码

let type=2;//单人组还是双人组

let acc=100;//10% or 100%

let chktime=40;//每过多少 ms 检查一次

let outputmin=40;//输出阈值

let printall=true;//是否在左侧文本框中输出所有的具体胜率

let all=['VIMYKPJ@Stellar',

'29gvF!x@Miracle',

'Bishop ARFXGATH@Miracle',

'5UWSX0DGRE5pTA9@新纪元',

'YKOQFMNYLNPVWWD@SZ',

'余烬OYXo7e7y4@SZ',

'Mriiwm@frisk',

'AYdcjm@mwh\_',

'公主 #07648027020@星光水晶焰',

'gnHHXmi@TigerStar',

'ddlezlmx@Helias',

'<input><br>ce0Y2rz@powerless',

'HQWWJYUHIGAVNP@霛雲',

'2EHKR7OYZ1JVY1@霛雲',

'vRuH:z@耗子尾汁',

'千矢 ZJUCVBFW@琪拉拉',

'大油包 #PXDHVJAT@暗黑突击',

'风史莱姆 #NQLTZLWD@暗黑突击',

'史莱德 #XPMTVPKY@暗黑突击',

'咲恋 ZPSFFQXQ@公主连结',

'Paloma SFCHPFOCH@Nostalgia',

'StezenFieven CPpISxdaSs@Nostalgia',

'光Yvxf2hGRv1Vf@fAIgFUL',

'RXuW4iX@fAIgFUL',

'm@fAIgFUL',

'飑Wcajsvb92asO@Squall',

'江DuDSKcYnD3nB@Squall',

'光YLqKf5rv9EU9lnc@Squall',

'对立IwncPEvanX1cFCl@Squall',

'风花雪月mrEm6W2F@酸橙',

'空 #b4WkVBd1t@酸橙',

'y\_xbgL@酸橙',

'朔晖BLIPVEXGA@涵虚',

'星垂TTTNBWYUM@涵虚',

'月涌PDDYWVQSV@涵虚',

'震泽IZIGCSOIU@涵虚',

'iqYDJWy@cyclone',

'Iwn<Zo@nan',

'U>7D3Ol7uWKIfTC@XJ联队'];

if (type==2) all=

['HX #00001r4WsNV@TigerStar+SquallGxEcZtpFdqVnfjW@TigerStar',

'/yCgtIT@TigerStar+LYS #0002muUS2D@TigerStar',

'Cyclone xr41I9Tugu@TigerStar+次声波氢弹 17mCUWXN@TigerStar',

'病女iuqY4EBkz7u8EgE@Squall+洞蚀VlJaocvnRvWWCC8@Squall ',

'USAO RnsKZrNPGgFOQvy@Asunder+powerless zKTFygJWFppGUVK@Asunder ',

'1H3pI5F@Asunder+uuwzA9l@Asunder ',

'群愿n5IIDVXJFF0fsbc@Squall+封焔の067750774622秒@Squall ',

'军训THUL3SPS8uKbLjD@Squall+白姬XoX5l6sW5OrfRHu@Squall',

'对立IwncPEvanX1cFCl@Squall+军训THUNhz6NvZhars0@Squall',

'浮光IEGUNVAZQ@涵虚+星垂NMTUYAWNQ@涵虚',

'游云PHGSQZLRJ@涵虚+月涌DKYYCMKAV@涵虚',

'虚境DCRFQNQEN@涵虚+月涌HSCOSAXZW@涵虚',

'潮汐IRWNAZFJL@涵虚+镜湖DRDNYSLEN@涵虚',

'碧落GRQQMEIWU@涵虚+浮光RXDJWYBVI@涵虚',

'NBnS=i2v-bR5P3o@新纪元+Fo1OddX@新纪元',

'kIB8nqK@新纪元+j8eUQKmpVmD2wxD@新纪元',

'XxVt-b5zMsWf6wk@新纪元+prFthod@新纪元',

'Avenge LVWIDFKV@Miracle+Revive LPLYXNHA@Miracle',

'CRSMPZN@Stellar+&TVLz4@Stellar',

'ookamiriru zTwthJZVYVQX@Nostalgia+StezenFieven IkuLbXoZSz@Nostalgia',

'BCOMJLCVPUURFT@霛雲+REWMPOKRKZMWFD@霛雲',

'EHIJAZXIXUDLFB@霛雲+ASUEENVKPEENQC@霛雲',

'SE9aa6R@cyclone+BH63ZeV@cyclone',

'k37PMBe@cyclone+VPzUZvR@cyclone',

'4bLRRaC52FWxMxq@XJ联队+ABmCSfhg7xFxxuY@XJ联队',

'e8sJpbjybeEKJDt@XJ联队+jfPRe106zwFWnDW@XJ联队',

'Patricia FRMQKEKMBXQI@nan+Hina SQNCZSVOWUUD@nan',

'Zeb OOWSDNBCXGRT@nan+Zeb RTAQMGYZXSQG@nan',

'NisEPWqqn9d2z@TLEWA+PXUK\'SjaSTkOR@TLEWA',

'PXUqQ8XHP9W34@TLEWA+NisR3fPOZO1WS@TLEWA',

'八条Y0diEC@酸橙+空EVq9BRzA87KN@酸橙',

'BZoPIow@酸橙+空PgLqDQb@酸橙',

'弱水zupx5J6pl@SZ+终焉oOEyDWe5rt@SZ'];

let k = 0;

let j = 0;

let fi = 0;

let result = "";

let cur="";

let namelist=document.querySelector('#textdiv>textarea').value.split('\n');

let curname="";

let avg=0;

let cnt=0;

function check()

{

    if (fi) {return;}

    if (cw().document.querySelectorAll('span.u').length <= acc){setTimeout(() => {check();},chktime);return;}

    const progress = cw().document.querySelectorAll('span.u');

    let pos = -1;

    for (let i = acc; i < progress.length; i++)

    {

        const element = progress[i];

        if (element.textContent.split(' ')[0] === '》'){pos = i;break;}

    }

    if (pos == -1) {setTimeout(() => {check();}, chktime);return;}

    const val = progress[pos].textContent.split(' ')[2];

    if (cur != cw().document.querySelectorAll('div.name')[3].textContent)

    {

        if (printall) result+=(`${all[j]} ${val}`)+"\n";

        let p=val[0]+val[1];

        if (val[2]!='%'){p+=val[3];if (val[4]!='%') p+=val[4];else p+='0';} else p+='00';

        if (parseInt(p)<9000) avg+=parseInt(p)/100,cnt+=1;

        j++;

        cur = cw().document.querySelectorAll('div.name')[3].textContent;

        document.querySelector('textarea#result').value = result;

        reload();

    }

    setTimeout(() => {check();}, chktime);

}

function reload()

{

    if (j < all.length)

    {

        if (curname==all[j]) j++;

        document.querySelector('#textdiv>textarea').value = `!test!\n\n${curname.replace('+','\n')}\n\n${all[j].replace('+','\n')}`;

        document.querySelector('.goBtn').click();

    } else

    {

        avg/=cnt;

        result+=`\n平均胜率：${avg}%\n\n\n`;

        document.querySelector('textarea#result').value = result;

        if (avg>outputmin) console.log(curname+' '+avg+'%');

        k++;avg=0;j=0;cnt=0;

        if (k>=namelist.length) {fi=1;return;}

        curname=namelist[k];result+=`${curname}:\n`;

        if (curname==all[j]) j++;

        document.querySelector('#textdiv>textarea').value = `!test!\n\n${curname.replace('+','\n')}\n\n${all[j].replace('+','\n')}`;

        document.querySelector('.goBtn').click();

    }

}

const NW = document.createElement('textarea');

NW.id = 'result';

document.body.appendChild(NW);

NW.setAttribute('readonly', true);

document.getElementsByClassName('mdframe')[0].setAttribute('style','display:none;');

curname=namelist[0];

result+=`${curname}:\n`;

reload();

check();