实验室安全测验系统主动答题脚本-无锡学院、南京信息工程大学
实验室安全测验系统主动答题脚本-无锡学院、南京信息工程大学此脚本支持但不限于南京信息工程大学、西北农林科技大学、广东海洋大学、曲阜师范大学、唐山工业职业技能学院、台州学院、福建农业职业技能学院、郑州航空工业管理学院、无锡学院、嘉兴学院、中山大学、扬州大学广陵学院、宁夏大学、河北科技大学、仲恺农业工程学院、江苏海洋大学、淮阴工学院、湖南文理学院、南通职业大学、暨南大学、青岛大学、玉林师范学院、中国农业大学、华侨大学、燕山大学、东北大学、湖南师范大学、西安建筑科技大学、河北科技大学
https://img-blog.csdnimg.cn/img_convert/4a62d923db929ddbe42c62a5ee8ad533.png
https://img-blog.csdnimg.cn/img_convert/a0c602d5c5b499878b4e96614d2b7515.png
[*] 安装油猴插件
推荐利用火狐浏览器
https://www.tampermonkey.net/
https://img-blog.csdnimg.cn/img_convert/ba9e7687a08c5f578b46c988d406482c.png
[*] 添加脚本
https://img-blog.csdnimg.cn/img_convert/0f6e969d49f989142ea07620faf78025.png
https://img-blog.csdnimg.cn/img_convert/696f6e1094579cef078914f6cf897de0.png
// ==UserScript==
// @name 实验室安全
// @namespace myetyet
// @version 4.4.2
// @description实验室安全网上考试答案自动填充,支持单位:南京信息工程大学、西北农林科技大学、广东海洋大学、曲阜师范大学、唐山工业职业技术学院、台州学院、福建农业职业技术学院、郑州航空工业管理学院、无锡学院、嘉兴学院、中山大学、扬州大学广陵学院、宁夏大学、河北科技大学、仲恺农业工程学院、江苏海洋大学、淮阴工学院、湖南文理学院、南通职业大学、暨南大学、青岛大学、玉林师范学院、中国农业大学、华侨大学、燕山大学、东北大学、湖南师范大学、西安建筑科技大学、河北科技大学
// @author myetyet
// @match http://examsafety.nuist.edu.cn/redir.php?catalog_id=6&cmd=dati
// @match https://labsafe.nwafu.edu.cn/redir.php?catalog_id=6&cmd=dati
// @match http://210.38.136.71:8090/redir.php?catalog_id=6&cmd=dati
// @match http://webvpn.cwxu.edu.cn/http-80/77726476706e69737468656265737421e3ee529d363b7b1e7d1f91b9d65027209705bc/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://aqjy.qfnu.edu.cn/redir.php?catalog_id=6&cmd=dati
// @match http://aqks.tsgzy.edu.cn/redir.php?catalog_id=6&cmd=dati&moni=
// @match https://sys.tzc.edu.cn/labexam/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://192.168.61.191/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://sxxt.fjny.com:11200/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://10.66.100.207/aqzrui/model/TwoGradePage/joinexam.aspx?kind=4&setid=*
// @match http://10.1.80.140/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://10.110.73.8/redir.php?catalog_id=6&cmd=dati
// @match http://202.116.65.193/redir.php?catalog_id=6&cmd=dati
// @match http://58.192.130.29/redir.php?catalog_id=6&cmd=dati
// @match https://sysaq.nxu.edu.cn/labexam/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://202.206.64.193/redir.php?catalog_id=6&cmd=dati&moni=*
// @match http://192.168.2.51/redir.php?catalog_id=6&cmd=dati*
// @match http://labexam.jou.edu.cn/redir.php?catalog_id=6&cmd=dati
// @match http://172.16.5.224/redir.php?catalog_id=6&cmd=dati&moni=0
// @match http://172.26.0.150/aqzrui/model/TwoGradePage/joinexam.aspx?kind=4&setid=*
// @match https://yaltest.ntvu.edu.cn/http/webvpn6c6162736166652e6e7476752e6564752e636e/redir.php?catalog_id=6&cmd=dati*
// @match https://aqpx.jnu.edu.cn/redir.php?catalog_id=6&cmd=dati&moni=*
// @match https://webvpn.qdu.edu.cn/http-80/*/redir.php?catalog_id=6&cmd=dati&mode=test
// @match https://webvpn.cwxu.edu.cn/http-80/77726476706e69737468656265737421e3ee529d363b7b1e7d1f91b9d65027209705bc/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://210.36.241.11/redir.php?catalog_id=6&cmd=dati&moni=0
// @match http://aqks.cau.edu.cn/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://labsafety-hqu-edu-cn.w.hqu.edu.cn:8118/redir.php?catalog_id=6&cmd=dati*
// @match http://202.206.247.8/redir.php?catalog_id=6&cmd=dati&moni=
// @match http://aqks.neu.edu.cn/redir.php?catalog_id=6&cmd=dati&mode=*
// @match https://labexam.hunnu.edu.cn/labexam/redir.php?catalog_id=6&cmd=dati&moni=
// @match https://labexam.xauat.edu.cn/redir.php?catalog_id=6&cmd=dati*
// @match http://sysaqksxt.hebust.edu.cn/redir.php?catalog_id=6&cmd=dati&moni=0
// @require https://greasyfork.org/scripts/391129-nuist-examsafety-question-bank/code/NUIST%20examsafety%20Question%20Bank.js?version=996976
// @run-at document-end
// @grant none
// @compatible chrome
// @license GPL-3.0-only
// ==/UserScript==
(function() {
'use strict';
var host = window.location.host;
if (host != "10.66.100.207" && host != "172.26.0.150") {
var questions = document.getElementsByClassName("shiti");
var _question, question, index, answer;
var notfounds = new Array(), dislocations = new Array();
var notfound = 0, dislocation = 0;
for (let i = 0, __qlength__ = questions.length; i < __qlength__; ++i) {
_question = questions.children.textContent.split("\u3001");
index = _question.shift();
question = _question.join("\u3001").replace(/[^0-9A-Za-z\u4e00-\u9fff]/g, "").replace(/^(\u5224\u65ad|\u5355\u9009|\u591a\u9009)\u9898/, "");
answer = findAnswer(question);
var _text, _c, c, answers;
var answered = false;
if (answer != "") {
answers = answer.split("\u000a");
for (let choice = 0, __clength__ = questions.children.childElementCount; choice < __clength__; ++choice) {
var ipt = document.getElementById("ti_" + index + "_" + String(choice));
_text = ipt.parentNode.children.textContent.replace(/[\s\?]/g, "");
if (_text.length == 0) {
dislocations = String(index);
questions.children.setAttribute("style", "color: red");
} else {
_c = _text.replace(/\./, "\u3001").replace(/\uff0e/, "\u3001").split("\u3001");
if (_c.length > 1) {
_c.shift();
}
c = _c.join("\u3001");
c = c.replace("\u6b63\u786e", "\u5bf9").replace("\u9519\u8bef", "\u9519");
for (let ai = 0, __alength__ = answers.length; ai < __alength__; ++ai) {
if (answers == c) {
ipt.click();
answered = true;
break;
}
}
}
}
if (!answered) {
notfounds = String(index);
questions.children.setAttribute("style", "color: red");
}
} else {
notfounds = String(index);
questions.children.setAttribute("style", "color: red");
}
}
if (notfound > 0 || dislocation > 0) {
if (notfound > 0) {
alert("\u6b64\u9875\u9762\u5171\u6709" + String(notfound) + "\u9053\u9898\u672a\u80fd\u81ea\u52a8\u586b\u5145\uff1a" + notfounds.join("\u3001"));
}
if (dislocation > 0) {
alert("\u6b64\u9875\u9762\u5171\u6709" + String(dislocation) + "\u9053\u9898\u7531\u4e8e\u9009\u9879\u9519\u4f4d\uff0c\u5df2\u9009\u62e9\u6b63\u786e\u4f46\u4e0d\u5f97\u5206\u9009\u9879\uff1a" + dislocations.join("\u3001"));
}
} else {
var next = document.getElementsByClassName("nav").children;
if (next && next.value == "\u4e0b\u4e00\u9875") {
next.click();
} else {
document.getElementsByClassName("nav").children.click();
}
}
} else {
let Qs = new Array();
let __QsLen__ = 0;
if (document.getElementById("DataGridA")) {
for (let i = 0, __Q__ = document.getElementById("DataGridA").children, __QLen__ = __Q__.childElementCount; i < __QLen__; ++i) {
Qs = __Q__.children;
}
}
if (document.getElementById("DataGridB")) {
for (let i = 0, __Q__ = document.getElementById("DataGridB").children, __QLen__ = __Q__.childElementCount; i < __QLen__; ++i) {
Qs = __Q__.children;
}
}
if (document.getElementById("DataGridC")) {
for (let i = 0, __Q__ = document.getElementById("DataGridC").children, __QLen__ = __Q__.childElementCount; i < __QLen__; ++i) {
Qs = __Q__.children;
}
}
let notfounds = new Array();
let notfound = 0;
for (let i = 0; i < __QsLen__; ++i) {
let t = Qs.children.children.children;
let _Q = t.children.children.children.textContent.split("\u3001");
let index = _Q.shift();
let Q = _Q.join("\u3001").replace(/[^0-9A-Za-z\u4e00-\u9fff]/g, "");
let A = findAnswer(Q);
let As = A.split("\u000a");
let Cs = t.children.children.children.children.children;
let answered = false;
for (let j = 0, __CsLen__ = Cs.childElementCount; j < __CsLen__; ++j) {
let _C = Cs.children.children.textContent.replace(/\./, "\u3001").replace(/\uff0e/, "\u3001").split("\u3001");
if (_C.length > 1) {
_C.shift();
}
let C = _C.join("\u3001");
C = C.replace("\u6b63\u786e", "\u5bf9").replace("\u9519\u8bef", "\u9519");
for (let k = 0, __AsLen__ = As.length; k < __AsLen__; ++k) {
if (C == As) {
Cs.children.children.click();
answered = true;
break;
}
}
}
if (!answered) {
notfounds = String(index);
t.children.children.children.setAttribute("style", "color: red");
}
}
if (notfound > 0) {
alert("\u6b64\u9875\u9762\u5171\u6709" + String(notfound) + "\u9053\u9898\u672a\u80fd\u81ea\u52a8\u586b\u5145\uff1a" + notfounds.join("\u3001"));
}
}
})();
[*]现在已经添加了大多数学校,假如有学校利用雷同的实验室安全测验框架,可以在脚本中继续添加
格式如下:http://192.168.61.191/redir.php?catalog_id=6&cmd=dati&moni=
http://测验ip地址/redir.php?catalog_id=6&cmd=dati&moni=
https://img-blog.csdnimg.cn/img_convert/d0c64dd8e1b5a44b62e5c8f943066b71.png
[*] 假如必要快速登录下一个账号,可以选择删除cookies
https://img-blog.csdnimg.cn/img_convert/964b99b63f8a9727683099eb72f2a6ec.png
https://img-blog.csdnimg.cn/img_convert/a21a977d51c3170be213dde1288e57f8.png
[*] 更多脚本:https://greasyfork.org/zh-CN
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]