智慧职教mooc学院计算机⽂化基础答案,智慧职教MOOC学院-
-⽹课助⼿(蓝版)
Hoe installeer ik dit?
You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Userscripts to install this script.
You will need to install a user script manager extension to install this script.
OK
Hoe installeer ik dit?
You will need to install an extension such as Stylus to install this script.
You will need to install an extension such as Stylus to install this script.
You will need to install an extension such as Stylus to install this script.
You will need to install a user style manager extension to install this script.
You will need to install a user style manager extension to install this script.
OK
// ==UserScript==
// @name 智慧职教MOOC学院 --⽹课助⼿ (蓝版)
// @version 1.08
// @description 智慧职教简易⾃动学习脚本,解除Ctrl+C限制,⾃动评论/讨论
// @author tuChanged
// @run- document-end
/
/ @grant unsafeWindow
// @match *://mooc.icve/study/*
// @license GPL
// ==/UserScript==
(function () {
'use strict';
const setting = {
// 随机评论
randomComment: ["6666", "好", "讲解得很精辟"],
//是否启⽤评论,
//最⾼延迟
maxDelayTime: 5000,
//最低3秒
minDelayTime: 3000,
//0-⾼清 1-清晰 2-流畅 3-原画
videoQuality: 2,
//2倍速
videoPlaybackRate: 2
}, _self = unsafeWindow,
url = location.pathname,
top = _self
try {
while (top != _p) top = top.parent.document ? top.parent : _p;
} catch (err) {
console.log(err);
top = _self;
}
var $ = _self.jQuery || top.jQuery;
//产⽣区间随机
var rnd = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
/**
* 随机延迟执⾏⽅法
* @param {需委托执⾏的函数} func 函数
*/
var delayExec = (func) => setTimeout(func, rnd(setting.minDelayTime, setting.maxDelayTime)); //跳转到某⼩节 通过顶栏
var gotoUrl = (page) => ts()[3].click();
//跳转下⼀页
// var nextCourse = () => $(".next").click();
//⼊⼝
switch (url) {
case "/study/courseLearn/resourcesStudy.html":
_main();
case "/study/discussionArea/topicReply.html": discussHandler();
break;
case "/study/workExam/testWork/preview.html": case "/study/workExam/onlineExam/preview.html": homeworkHandler();
break;
case "/study/workExam/homeWork/history.html": case "/study/workExam/onlineExam/history.html": case "/study/workExam/testWork/history.html": floatHandler();
break;
default:
console.log(`脚本已准备启动 当前位置:${url}`); break;
}
//当前页
let current;
//刷课主逻辑
function _main() {
//请求数据
$("#olTempleteCellModul").click();
//main函数
setTimeout(() => {
//当前⼩节
current = $("li.np--level.np--level-3.active");
switch (current.data().categoryname) {
case "pt":
case "⽂档":
pptHandler(current);
break;
case "视频":
videoHandler(current);
console.log("当前处理逻辑安排完成,等待执⾏结果中");
}, 10000);
}
tampermonkey
/**
* 检测课程类别 并深层递归
*/
function check(current) {
//多级跳转
if (().length == 0) {
// d();
//往树根遍历
//⼩章节
let parent = current.closest(".np--level-2");
if (().length == 0) {
//⼤章
let ancestor = parent.closest(".np--level-1")
//检测是否到终章
if (().length == 0) {
alert("任务完成");
/
/关闭当前窗⼝
// closeTab();
} else {
().find(".np--level-3").first());
}
} else {
().find(".np--level-3").first())
}
return;
}
//查询下⼀个是否已完成
if (().find("span.np--type.active").length > 0) { ());
//查询下⼀项所属类别
switch (().data().categoryname) {
case ""://⽬录
case "作业":
case "测验":
());
break;
case "讨论":
setTimeout(() => {
())
}, 20000);
());
break;
case "pt":
case "视频":
case "⽂档":
());
_main();
break;
}
}
/
**
* 作业处理
*/
function homeworkHandler() {
uncageCopyLimit()
}
/*
* 解除⽂本限制
*/
function uncageCopyLimit() {
let arr = ["oncontextmenu", "ondragstart", "onselectstart", "onselect", "oncopy", "onbeforecopy"]

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。