智慧树网课助手
说明
智慧树网课全自动模拟人工挂机脚本,并可解除智慧树考试页面的禁止复制和右键菜单屏蔽
支持自动选择播出过程弹出的题目(瞎蒙,反正不记录),播放完毕后自动播放下一个视频
基本是模拟手来点击的。请妥善使用,自行承担发生的问题。
平台会升级换代的,不保证一直有效。最后测试时间:2021年7月30日
如果愿意花费一些时间来看代码会发现它并不难,也就是说可以自行加入或修改代码来实现需要的功能
使用方法
可以添加到 油猴
脚本中或者直接浏览器按 F12
并在 控制台(console)
选项卡输入以下并回车来运行脚本
脚本内容
// ==UserScript==
// @name AutoZhiHuiShu
// @namespace http://tampermonkey.net/
// @version 1.5
// @description 智慧树网课全自动模拟人工挂机脚本,并可解除智慧树考试页面的禁止复制
// @match *://studyh5.zhihuishu.com/videoStudy.html
// @match *://onlineexamh5new.zhihuishu.com/*
// @author Ainto
// @homepage https://ainto.org
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsSAAALEgHS3X78AAAH2UlEQVR4nO1dTXLaShCeUNmH0oK1cwN8AuMTBG/ZxDmBn09AfII8n8B4o63JCYxPYG5g1iwo+QTv1eBv8CAk6O75kQT6qlKkEoFG/al7pqd/5ouqOZJ0eaaU0n8GSqlvSqk+Rqw/uyWjz5RSc/xdf74rpWZKqcVq1FvU+YlrR0iSLvsQ/gU+y4QuRQZyXvTnatSbe/59J9SCkCRdasH/BAFnkW+/AEGPq1FvFvneO6iMEJiiaxARm4QyaHIelVKTqkxbdEIsbbiOfW8mJlVoTTRCQMQYZqlJ0ITcxSImOCEwTeMGaMQhTEBMUFMWlJAkXf5WSt0EWClVBb1Cu1+Ner9D3T8IIVi6Plg+w7FBL5V/hVgyd3z/YJIu/1FKvR4xGQrP9opn9QpvGpKkyy60Yuh7kJbn/WJ74WUTLRYQyvLmLw549i6YQlsyHz/mhZBAJmrq25vO7QL4fHG8mTBnQvCQz57evhkcs6mvN64M0OihtUPgCj3eS1dSnAhJ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B7DxrfZ53lvvHl86m4VmgSdHlTfRs1Kqf8B48dZ5myARNQAAAAASUVORK5CYII=
// @grant none
// ==/UserScript==
(function () {
'use strict';
window.setInterval(function () {
//1.5倍速度 网站默认支持的最高速度
if (document.querySelector('.speedList .speedTab.speedTab15')) {
document.querySelector('.speedList .speedTab.speedTab15').click();
//弹题检查
if ($('.dialog-test').length > 0) {
//检测到有题目
var topic_item = $('.topic-item');
//随机点击一个选项
var guess_answer = parseInt(Math.random() * topic_item.length);
topic_item[guess_answer].click();
setTimeout(function () {
//猜的答案
var guess_char = 'ABCD'[guess_answer];
//正确答案
var answer = document.querySelector('p.answer span').innerText;
//没蒙对重新选一次
if (answer != guess_char) {
if (answer.indexOf('A') >= 0) {
topic_item[0].click();
}
if (answer.indexOf('B') >= 0) {
topic_item[1].click();
}
if (answer.indexOf('C') >= 0) {
topic_item[2].click();
}
if (answer.indexOf('D') >= 0) {
topic_item[3].click();
}
console.log("跳过弹题测验,蒙的" + guess_char + ',正确答案:' + answer);
} else {
console.log("跳过弹题测验,一次蒙对,答案:" + answer);
}
}, 800)
//关闭弹窗
setTimeout(function () {
$('.dialog-test').find('div.btn').click();
document.querySelector('video').play();
}, 3000)
} else {
document.querySelector('video').play();
}
if ($('.nPlayTime').children('.currentTime').text() == $('.nPlayTime').children('.duration').text()) {
console.log("检测到进度条已满,播放下一个");
document.querySelector('#nextBtn').click();
}
} else {
//解除禁止复制
setTimeout(() => {
console.log('解除禁止复制');
document.oncontextmenu = function (e) { };
document.onpaste = function (e) { };
document.oncopy = function (e) { };
document.oncut = function (e) { };
document.onselectstart = function (e) { };
}, 2000)
}
}, 15000);
})();
再次提示
使用脚本有风险,本脚本并不保证一直不会被检测到 如果担心被检测,你可使用别人制作的脚本或认真手动操作
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »