代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>筛属性</title>
</head>
<body>
<pre>
const pre = '';
const team = '';
let result = '';
let a;
let b;
let name = '';
let attributes = '';
let maxx;
let minn;
let f98;
let f97;
let HP;
let eight;
let seven;
let names = '';
/**
* Get a random name.
* @return {String} The name.
*/
function getRandomName() {
let s = '';
for (let i = 0; i < 8; i++) {
const val = Math.floor(Math.random() * 36);
if (val < 10) {
s += String.fromCharCode(48 + val);
} else {
s += String.fromCharCode(55 + val);
}
}
return s;
}
/**
* Reload names.
*/
function reload() {
names = team + '\n';
for (let i = 0; i < 10; i++) {
names += ` ${pre}${getRandomName()}\n`;
}
document.querySelector('div>textarea').value = names;
document.querySelector('.goBtn').click();
}
/**
* Search for the special names.
*/
function maint() {
if (cw().document.querySelectorAll('div.name').length < 10) {
setTimeout(function() {
maint();
}, 100);
return;
}
a = cw().document.querySelectorAll('div.name');
for (let i = 10; i < 20; i++) {
name = a[i].textContent.replace(/^\s+|\s+$/g, '');
attributes = a[i].nextSibling.textContent.replace(/^\s+|\s+$/g, '').replace(
'HP ', '') + a[i].nextSibling.nextSibling.textContent.replace(
/^\s+|\s+$/g, '').
replace('攻', '.').replace(' 防', '.').
replace(' 速', '.').replace(' 敏', '.').
replace(' 魔', '.').replace(' 抗', '.').
replace(' 智', '.');
b = attributes.split('.');
for (let j = 0; j < b.length; j++) {
b[j] = parseInt(b[j]);
}
maxx = 35;
minn = 99;
f98 = f97 = 0;
HP = b[0];
b[0] = Math.floor(HP / 3);
for (let j = 1; j <= 7; j++) {
if (b[j] > maxx) {
maxx = b[j];
}
if (b[j] < minn) {
minn = b[j];
}
if (b[j] === 98) {
f98 = 1;
}
if (b[j] === 97) {
f97 = 1;
}
}
seven = b[1] + b[2] + b[3] + b[4] + b[5] + b[6] + b[7];
eight = b[0] + seven;
if (eight >= 692 || (eight >= 672 && (b[5] <= 50 || b[1] <= 50 || (b[2] - b[
1] >= 30 && b[5] >= 85 && b[7] >= 85))) || (eight >= 682 && (b[5] <=
55 || b[1] <= 55 || (b[2] - b[1] >= 25 && b[5] >= 85 && b[7] >= 85)))) {
result += `${name} ${eight}\n`;
}
if (HP < 164) {
result += `${name} 最低HP!\n`;
}
if (HP > 397) {
result += `${name} 最高HP!\n`;
}
if (eight <= 395) {
result += `${name} 最低八围!\n`;
}
if (eight >= 750) {
result += `${name} 超高八围!\n`;
}
if (maxx - minn <= 3 && minn >= 75) {
result += `${name} 整齐八围!\n`;
}
if (maxx - minn <= 3 && maxx <= 75) {
result += `${name} 整齐八围!\n`;
}
if (minn >= 90) {
result += `${name} 全90+!\n`;
}
if (seven > 649) {
result += `${name} 最高七围!\n`;
}
if (seven < 309) {
result += `${name} 最低七围!\n`;
}
if (maxx === 99 && f98 === 1) {
result += `${name} 99+98!\n`;
}
if (maxx === 99 && f98 === 1 && f97 === 1) {
result += `${name} 99+98+97!\n`;
}
}
document.querySelector('textarea#result').value = result;
reload();
setTimeout(function() {
maint();
}, 100);
}
const NW = document.createElement('textarea');
NW.id = 'result';
document.body.appendChild(NW);
NW.setAttribute('readonly', true);
document.getElementsByClassName('mdframe')[0].setAttribute('style',
'display:none;');
reload();
maint();
</pre>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。