代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>二人组组队</title>
</head>
<body>
<pre>
const stk = document.querySelector('#textdiv>textarea').value.split('\n');
let maxx = 0;
let ans = 0;
let is = 0;
let res = '';
console.log('使用完了记得刷新');
const stl = stk.length;
for (let i = 0; i < stl - 1; i++) {
for (let j = i + 1; j < stl; j++) {
stk.push(`${stk[i]}\n${stk[j]}`);
}
}
/**
* Get the score of a name.
*/
function chk() {
if (is === 0) {
if (stk.length > stl) {
const s = stk[stk.length - 1];
res = s + '\n\n';
document.querySelector('#textdiv>textarea').value = `!test!\n!\n\n${s}`;
document.querySelector('.goBtn').click();
is = 1;
stk.pop();
} else {
alert(`测试已完成
最强2人组:
${ans}${maxx}`);
clearInterval(si);
}
} else {
const a = cw().document.querySelectorAll('span.u');
const n = a.length;
if (n) {
if (a[n - 1].textContent.search(
/实力评估中...[1-9][1-9]%/) !== -1) {
const sum = cw().document.querySelectorAll('span.u')[10].textContent
.split(' ')[2];
const val = parseInt(sum);
if (val > maxx) {
maxx = val;
ans = res;
}
res += sum + '\n';
is = 0;
if (stk.length >= stl) {
console.log(res);
}
}
}
}
}
const si = setInterval(function() {
chk();
}, 1000);
</pre>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。