问卷星(定制比例)模板(2021最新版!!!)
// ==UserScript==
// @name 问卷星(定制比例)模板(2021最新版!!!)
// @namespace http://tampermonkey.net/
// @version 3.3
// @description for wsz
// @author zwl
// @include https://www.wjx.cn/*
// ==/UserScript==
(function () {
'use strict';
//===========================开始==============================
clearCookie();
//填写刷问卷的网址 注意,如果问卷中的网址中间是vm,一定要改成vj!!!,像这样 https://www.wjx.cn/vj/QvfxoEU.aspx
var wenjuan_url = 'https://www.wjx.cn/vj/wb51OkJ.aspx';
//------------------------------下边的网址不要改!!!!!!!!!!!!!!!!!!!!
if (window.location.href.indexOf('https://www.wjx.cn/wjx/join/complete.aspx') != -1) {
window.location.href = wenjuan_url;
} else if (window.location.href == wenjuan_url) {
} else {
return
}
//滚动到末尾
window.scrollTo(0, document.body.scrollHeight)
//获取题块列表
var lists = document.querySelectorAll('.ulradiocheck')
var ccc = 0;
var liangbiao_index = 0;
var xiala_index = 0;
var ops;
var bili;
var temp_flag;
var tiankong_list;
var liangbiao_lists;
var min_options;
var ch_num = 0;
//1
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = [50, 50];
ops[danxuan(bili)].click()
//2
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(4);
ops[danxuan(bili)].click()
//3
xiala_click(document.querySelectorAll('.select2-selection.select2-selection--single')[xiala_index])
xiala_index += 1
ops = document.querySelectorAll('#select2-q3-results li')
ops = Array.prototype.slice.call(ops); //非ie浏览器正常
ops = ops.slice(1, ops.length);
bili = randomBili(ops.length - 1);//默认所有选项平均分配
//只选择2022
bili[0] = 10000000
xialaElement_click(ops[danxuan(bili)])
//4
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(4);
ops[danxuan(bili)].click()
//5
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//6
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//7
liangbiao_lists = document.querySelectorAll('#div7 tbody tr')
liangbiao_index = 0
//7-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//7-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//7-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//7-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//7-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//8
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//9
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//10
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(6);
ops[danxuan(bili)].click()
//11
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//12
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//13
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//14
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//15
liangbiao_lists = document.querySelectorAll('#div15 tbody tr')
liangbiao_index = 0
//15-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//15-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//15-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//15-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//15-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//16
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//17
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//18
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//19
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//20
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//下一页
document.querySelector('#btnNext').click()
//滚动至末尾
window.scrollTo(0, document.body.scrollHeight)
//21
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ch_num = danxuan(bili);
ops[ch_num].click()
//如果21题选择 一般及以上
if (ch_num >= 2) {
//22
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//23
liangbiao_lists = document.querySelectorAll('#div23 tbody tr')
liangbiao_index = 0
//23-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//23-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//23-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//23-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//23-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//24
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//25
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//26
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(6);
ops[danxuan(bili)].click()
//27
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//28
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
} else {
ccc += 6
}
//29
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ch_num = danxuan(bili);
ops[ch_num].click()
if (ch_num >= 2) {
//30
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//31
liangbiao_lists = document.querySelectorAll('#div31 tbody tr')
liangbiao_index = 0
//31-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//31-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//31-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//31-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//31-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//32
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//33
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//34
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(6);
ops[danxuan(bili)].click()
//35
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//36
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
} else {
ccc += 6;
}
//37
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ch_num = danxuan(bili);
ops[ch_num].click()
if (ch_num >= 2) {
//38
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//39
liangbiao_lists = document.querySelectorAll('#div39 tbody tr')
liangbiao_index = 0
//39-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//39-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//39-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//39-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//39-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//40
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//41
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//42
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(6);
ops[danxuan(bili)].click()
//43
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//44
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
} else {
ccc += 6
}
//下一页
document.querySelector('#btnNext').click()
//滚动至末尾
window.scrollTo(0, document.body.scrollHeight)
//45
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ch_num = danxuan(bili);
ops[ch_num].click()
//如果45题选择 一般及以上
if (ch_num >= 2) {
//46
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//47
liangbiao_lists = document.querySelectorAll('#div47 tbody tr')
liangbiao_index = 0
//47-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//47-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//47-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//47-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//47-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//48
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//49
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//50
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(6);
ops[danxuan(bili)].click()
//51
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//52
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
} else {
ccc += 6
}
//53
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ch_num = danxuan(bili);
ops[ch_num].click()
if (ch_num >= 2) {
//54
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//55
liangbiao_lists = document.querySelectorAll('#div55 tbody tr')
liangbiao_index = 0
//55-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//55-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//55-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//55-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//55-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//56
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//57
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//58
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(6);
ops[danxuan(bili)].click()
//59
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//60
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
} else {
ccc += 6;
}
//61
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ch_num = danxuan(bili);
ops[ch_num].click()
if (ch_num >= 2) {
//62
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//63
liangbiao_lists = document.querySelectorAll('#div63 tbody tr')
liangbiao_index = 0
//63-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//63-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//63-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//63-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//63-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//64
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//65
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//66
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(6);
ops[danxuan(bili)].click()
//67
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//68
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(5);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
} else {
ccc += 6
}
//69
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(3);
ops[danxuan(bili)].click()
//下一页
document.querySelector('#btnNext').click()
//滚动至末尾
window.scrollTo(0, document.body.scrollHeight)
//70
liangbiao_lists = document.querySelectorAll('#div70 tbody tr')
liangbiao_index = 0
//70-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-6
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-7
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-8
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-9
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-10
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-11
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//70-12
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71
liangbiao_lists = document.querySelectorAll('#div71 tbody tr')
liangbiao_index = 0
//71-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-6
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-7
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-8
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-9
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-10
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-11
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//71-12
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72
liangbiao_lists = document.querySelectorAll('#div72 tbody tr')
liangbiao_index = 0
//72-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-6
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-7
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-8
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-9
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-10
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-11
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-12
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-13
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-14
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-15
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-16
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-17
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-18
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-19
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-20
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-21
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-22
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-23
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//72-24
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73
liangbiao_lists = document.querySelectorAll('#div73 tbody tr')
liangbiao_index = 0
//73-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-6
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-7
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-8
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//73-9
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(5);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74
liangbiao_lists = document.querySelectorAll('#div74 tbody tr')
liangbiao_index = 0
//74-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-3
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-4
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-5
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-6
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-7
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-8
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-9
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-10
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-11
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-12
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-13
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-14
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-15
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-16
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-17
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-18
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-19
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-20
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//74-21
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//下一页
document.querySelector('#btnNext').click()
//滚动至末尾
window.scrollTo(0, document.body.scrollHeight)
//76
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = [50, 50];
ops[danxuan(bili)].click()
//77
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(2);
ops[danxuan(bili)].click()
//78
ops = lists[ccc].querySelectorAll('li');
ccc += 1;
bili = randomBili(4);
min_options = 1 //设置最少选择的项数
temp_flag = 0;
while (temp_flag < min_options) {
let temp_answer = []
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
temp_answer.push(count)
temp_flag += 1
}
if (count == bili.length - 1) {
if (temp_flag < min_options) {
temp_flag = 0
}
else {
for (let count = 0; count < temp_answer.length; count++) {
ops[temp_answer[count]].click();
}
}
}
}
}
//79
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
//80
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(9);
ops[danxuan(bili)].click()
//81
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(9);
ops[danxuan(bili)].click()
//82
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(9);
ops[danxuan(bili)].click()
//83
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(9);
ops[danxuan(bili)].click()
//84
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(2);
bili[1] = 200;
ch_num = danxuan(bili);
ops[ch_num].click()
//如果84题选择 一般及以上
if (ch_num == 0) {
// 85
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(3);
ops[danxuan(bili)].click()
// 86
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(3);
ops[danxuan(bili)].click()
// 87
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(3);
ops[danxuan(bili)].click()
// 88
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(4);
ops[danxuan(bili)].click()
// 89
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(4);
ops[danxuan(bili)].click()
} else {
ccc += 5;
}
//90
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(2);
ops[danxuan(bili)].click()
//91
liangbiao_lists = document.querySelectorAll('#div91 tbody tr')
liangbiao_index = 0
//91-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//91-2
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index += 1
bili = randomBili(4);
temp_flag = false
while (!temp_flag) {
for (let count = 0; count < bili.length; count++) {
if (duoxuan(bili[count])) {
ops[count].click();
temp_flag = true;
}
}
}
//下一页
document.querySelector('#btnNext').click()
//滚动至末尾
window.scrollTo(0, document.body.scrollHeight)
//92
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(4);
ops[danxuan(bili)].click()
//93
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(4);
ops[danxuan(bili)].click()
//94
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(2);
ops[danxuan(bili)].click()
//95
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(3);
ops[danxuan(bili)].click()
//96
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(4);
ops[danxuan(bili)].click()
//97
ops = lists[ccc].querySelectorAll('li')
ccc += 1
bili = randomBili(5);
ops[danxuan(bili)].click()
let count = 0
//提交函数
setTimeout(function () {
document.querySelector('#submit_button').click()
setTimeout(function () {
document.querySelector('#SM_BTN_1').click()
setInterval(function () {
try {
//点击刷新验证框
//noCaptcha.reset(1)
yanzhen();
count += 1;
}
catch (err) {
if (count >= 6) {
location.reload()
}
}
}, 500);
}, 0.1 * 1000);
}, 0.1 * 1000);
/*
//---------------------------------------------------------------------------------------------------
//单选题模板
ops = lists[ccc].querySelectorAll('li')
ccc+=1
bili = [];
ops[danxuan(bili)].click()
//---------------------------------------------------------------------------------------------------
//多选题模板(至少选一个选项)
ops = lists[ccc].querySelectorAll('li')
ccc+=1
bili = [];
temp_flag = false
while(!temp_flag){
for(let count = 0;count<bili.length;count++){
if(duoxuan(bili[count])){
ops[count].click();
temp_flag = true;
}
}
}
//---------------------------------------------------------------------------------------------------
//多选题模板(可自定义至少选一个选项)
ops = lists[ccc].querySelectorAll('li');
ccc+=1;
bili = [];
min_options = 3 //设置最少选择的项数
temp_flag = 0;
while(temp_flag<min_options){
let temp_answer = []
for(let count = 0;count<bili.length;count++){
if(duoxuan(bili[count])){
temp_answer.push(count)
temp_flag+=1
}
if(count==bili.length-1){
if(temp_flag<min_options){
temp_flag = 0
}
else{
for(let count = 0;count<temp_answer.length;count++){
ops[temp_answer[count]].click();
}
}
}
}
}
//---------------------------------------------------------------------------------------------------
//填空题模板(固定答案)
document.querySelector('#q题号').value='自定义答案'
//---------------------------------------------------------------------------------------------------
//填空题模板(多个答案,可定制比例)
tiankong_list = ['王翠花','小明','小红'];
bili = [33,33,34];
document.querySelector('#q题号').value=tiankong_list[danxuan(bili)]
//---------------------------------------------------------------------------------------------------
//单选的量表题模板
liangbiao_lists = document.querySelectorAll('#div题号 tbody tr')
liangbiao_index=0
//题号-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index+=1
bili = [20,20,20,20,20];
ops[danxuan(bili)].click()
//---------------------------------------------------------------------------------------------------
//多选的量表题模板
liangbiao_lists = document.querySelectorAll('#div题号 tbody tr')
liangbiao_index=0
//题号-1
ops = liangbiao_lists[liangbiao_index].querySelectorAll('td')
liangbiao_index+=1
bili = [50,50,50,50];
temp_flag = false
while(!temp_flag){
for(let count = 0;count<bili.length;count++){
if(duoxuan(bili[count])){
ops[count].click();
temp_flag = true;
}
}
}
//---------------------------------------------------------------------------------------------------
//下拉框题模板
xiala_click(document.querySelectorAll('.select2-selection.select2-selection--single')[xiala_index])
xiala_index+=1
ops = document.querySelectorAll('#select2-q题号-results li')
ops = Array.prototype.slice.call(ops); //非ie浏览器正常
ops = ops.slice(1,ops.length);
bili = randomBili(ops.length-1);//默认所有选项平均分配
xialaElement_click(ops[danxuan(bili)])
//---------------------------------------------------------------------------------------------------
/*
//点击提交按钮
setTimeout( function(){
//document.querySelector('#submit_button').click()
var ev = document.createEvent('HTMLEvents');
ev.clientX = 20
ev.clientY = 20
ev.initEvent('click', false, true);
document.querySelector('#submit_button').dispatchEvent(ev)
}, 3 * 1000 );
*/
//===========================结束==============================
//返回随机bili 参数为随机个数
function randomBili(num) {
let a = Math.floor(100 / num);
let yu = 100 - a * num;
let list = [];
for (let i = 0; i < num; i++) {
list.push(a)
}
for (let i = 0; i < yu; i++) {
list[i] = list[i] + 1
}
return list;
}
//累加list前num数的和
function leijia(list, num) {
var sum = 0
for (var i = 0; i < num; i++) {
sum += list[i];
}
return sum;
}
//生成从minNum到maxNum的随机数
function randomNum(minNum, maxNum) {
switch (arguments.length) {
case 1:
return parseInt(Math.random() * minNum + 1, 10);
break;
case 2:
return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);
break;
default:
return 0;
break;
}
}
//判断num是否在指定区间内
function isInRange(num, start, end) {
if (num >= start && num <= end) {
return true;
} else {
return false;
}
}
//单选题执行函数
function danxuan(bili) {
var pp = randomNum(1, 100)
for (var i = 1; i <= bili.length; i++) {
var start = 0;
if (i != 1) {
start = leijia(bili, i - 1)
}
var end = leijia(bili, i);
if (isInRange(pp, start, end)) {
return i - 1;
break;
}
}
}
//多选题执行函数
function duoxuan(probability) {
var flag = false;
var i = randomNum(1, 100);
if (isInRange(i, 1, probability)) {
flag = true;
}
return flag;
}
//清楚cookie
function clearCookie() {
var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
if (keys) {
for (var i = keys.length; i--;) {
document.cookie = keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString();//清除当前域名下的,例如:m.kevis.com
document.cookie = keys[i] + '=0;path=/;domain=' + document.domain + ';expires=' + new Date(0).toUTCString();//清除当前域名下的,例如 .m.kevis.com
document.cookie = keys[i] + '=0;path=/;domain=kevis.com;expires=' + new Date(0).toUTCString();//清除一级域名下的或指定的,例如 .kevis.com
}
}
}
//滑动验证函数
function yanzhen() {
var event = document.createEvent('MouseEvents');
event.initEvent('mousedown', true, false);
document.querySelector("#nc_1_n1z").dispatchEvent(event);
event = document.createEvent('MouseEvents');
event.initEvent('mousemove', true, false);
Object.defineProperty(event, 'clientX', { get() { return 260; } })
document.querySelector("#nc_1_n1z").dispatchEvent(event);
}
//滚动到末尾函数
function scrollToBottom() {
(function () {
var y = document.body.scrollTop;
var step = 500;
window.scroll(0, y);
function f() {
if (y < document.body.scrollHeight) {
y += step;
window.scroll(0, y);
setTimeout(f, 50);
}
else {
window.scroll(0, y);
document.title += "scroll-done";
}
}
setTimeout(f, 1000);
})();
}
//点击下拉框方法
function xiala_click(e) {
let fireOnThis = e
let evObj = document.createEvent('MouseEvents');
evObj.initMouseEvent('mousedown', true, true, this, 1, 12, 345, 7, 220, false, false, true, false, 0, null);
fireOnThis.dispatchEvent(evObj);
}
//点击下拉框中的选项方法
function xialaElement_click(e) {
let fireOnThis = e
let evObj = document.createEvent('MouseEvents');
evObj.initMouseEvent('mouseup', true, true, this, 1, 12, 345, 7, 220, false, false, true, false, 0, null);
fireOnThis.dispatchEvent(evObj);
}
})();