// ==UserScript== // @name TOD🚀全平台网课助手【学习通 U校园ai 知到 英华 仓辉 雨课堂 职教云】【学起 青书 柠檬 睿学 慕享 出头科技 慕华】【国开 广开 上海开放大学】等平台 客服微信:WKWK796 自动刷课 // @namespace https://github.com/wkwk796 // @version 1.8.1 // @description 🐯全网免费仅做一款脚本🐯】、【🚀已完美兼容、智慧树、中国大学mooc、慕课、雨课堂、新国开、超星、学习通、知到、国家开放大学、蓝墨云、职教云、智慧职教、云班课精品课、山东专技、西财在线剩余网站仅支持部分功能🚀】【半兼容、绎通云、U校园、学堂在线】、【😎完美应付测试,全自动答题,一键完成所有资源学习(视频挨个刷时长不存在滴)、视频倍速😎】、 // @author Wkwk796 // @match *://*.chaoxing.com/* // @match *://*.zhihuishu.com/* // @match *://*.chaoxing.com/* // @match *://mooc1.chaoxing.com/nodedetailcontroller/* // @match *://*.chaoxing.com/mooc-ans/work/doHomeWorkNew* // @match *://*.chaoxing.com/work/doHomeWorkNew* // @match *://*.edu.cn/work/doHomeWorkNew* // @match *://*.asklib.com/* // @match *://*.chaoxing.com/* // @match *://*.hlju.edu.cn/* // @match *://lms.ouchn.cn/* // @match *://xczxzdbf.moodle.qwbx.ouchn.cn/* // @match *://tongyi.aliyun.com/qianwen/* // @match *://chatglm.cn/* // @match *://*.zhihuishu.com/* // @match *://course.ougd.cn/* // @match *://moodle.syxy.ouchn.cn/* // @match *://moodle.qwbx.ouchn.cn/* // @match *://elearning.bjou.edu.cn/* // @match *://whkpc.hnqtyq.cn:5678/* // @match *://study.ouchn.cn/* // @match *://www.51xinwei.com/* // @match *://*.w-ling.cn/* // @match *://xuexi.jsou.cn/* // @match *://*.edu-edu.com/* // @match *://xuexi.jsou.cn/* // @match *://spoc-exam.icve.com.cn/* // @match *://*.icve.com.cn/* // @match *://zice.cnzx.info/* // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue // @grant GM_info // @grant GM_addStyle // @grant unsafeWindow // @grant none // @license MIT // @icon https://static.zhihuishu.com/static/img/favicon.ico // @downloadURL none // ==/UserScript== (function() { 'use strict'; // 配置模块 const config = { contact: "wkwk796", // 开发者联系方式 speed: 2.0, // 默认倍速 randomDelay: true, // 随机操作延迟 autoNext: true // 自动跳转章节 }; // UI控制面板 function initControlPanel() { GM_addStyle(` #controlPanel { position: fixed; top: 20px; right: 20px; z-index: 9999; background: rgba(255,255,255,0.9); padding: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .control-item { margin: 8px 0; } `); const panelHTML = `

学习通助手 v2.1

技术支持:${config.contact}
`; $('body').append(panelHTML); // 事件绑定 $('#speedSelect').change(function() { config.speed = parseFloat(this.value); setVideoSpeed(); }); $('#randomDelay').change(() => config.randomDelay = this.checked); $('#autoNext').change(() => config.autoNext = this.checked); } // 核心功能模块 function mainLogic() { // 自动播放视频 const videoPlayer = document.querySelector('video'); if(videoPlayer) { videoPlayer.play(); videoPlayer.playbackRate = config.speed; videoPlayer.muted = true; // 静音播放避免检测[citation:4][citation:7] // 进度监控 videoPlayer.addEventListener('timeupdate', () => { if(videoPlayer.currentTime / videoPlayer.duration > 0.9) { handleChapterComplete(); } }); } // 自动处理任务点 const taskPoints = document.querySelectorAll('.ans-attach-online'); if(taskPoints.length > 0) { taskPoints.forEach(point => { if(config.randomDelay) { setTimeout(() => point.click(), Math.random()*3000 + 1000); // 1-4秒随机延迟[citation:7] } else { point.click(); } }); } } // 章节完成处理 function handleChapterComplete() { if(config.autoNext) { const nextBtn = document.querySelector('.next_btn'); if(nextBtn) { nextBtn.click(); setTimeout(mainLogic, 5000); // 等待新章节加载 } } } // 初始化执行 setTimeout(() => { initControlPanel(); mainLogic(); // 开发者信息注入 console.log(`%c技术支持请联系:${config.contact}`, 'color:#fff; background:#2196F3; padding:2px 5px; border-radius:3px;'); }, 3000); // 等待页面加载 })();