// ==UserScript== // @name 🏆超星刷课工具UI2.0|继续教育|学银在线|图片题|后台自动挂机|视频文档|章节测验|不占网速🏆 // @name:zh-TW 🏆超星刷课工具UI2.0|继续教育|学银在线|图片题|后台自动挂机|视频文档|章节测验|不占网速🏆 // @name:en 🏆超星刷课工具UI2.0|继续教育|学银在线|图片题|后台自动挂机|视频文档|章节测验|不占网速🏆 // @description 【千万题库】支持|视频|文档|章节测验〇可最小化挂机〇单页面运行不占网速〇无答案测验自动保存 // @description:zh-TW 【千万题库】支持|视频|文档|章节测验〇可最小化挂机〇单页面运行不占网速〇无答案测验自动保存 // @description:en 【千万题库】支持|视频|文档|章节测验〇可最小化挂机〇单页面运行不占网速〇无答案测验自动保存 // @namespace 申禅姌 // @version 0.1.3 // @author 申禅姌 // @run-at document-end // @storageName 申禅姌 // @match *://*/* // @icon http://pan-yz.chaoxing.com/favicon.ico // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue //👇👇👇👇👇👇👇👇请将脚本提示的代码填入下面空白中,一行一个,按Ctrl+S保存👇👇👇👇👇👇👇👇 //👆👆👆👆👆👆👆👆请将脚本提示的代码填入上面空白中,一行一个,按Ctrl+S保存👆👆👆👆👆👆👆👆 // @connect mooc1.chaoxing.com // @connect mooc1-1.chaoxing.com // @connect mooc1-2.chaoxing.com // @connect stat2-ans.chaoxing.com // @connect passport2.chaoxing.com //---------------------------------------- // @connect mooc1.hnust.edu.cn // @connect stat2-ans.hnust.edu.cn // @connect passport2.hnust.edu.cn //---------------------------------------- // @connect mooc1.hnsyu.net // @connect stat2-ans.hnsyu.net // @connect passport2.hnsyu.net //---------------------------------------- // @connect mooc1.gdhkmooc.com // @connect stat2-ans.gdhkmooc.com // @connect passport2.gdhkmooc.com //---------------------------------------- // @connect mooc1.zut.edu.cn // @connect stat2-ans.zut.edu.cn // @connect passport2.zut.edu.cn //---------------------------------------- // @connect mooc1.wljx.hfut.edu.cn // @connect stat2-ans.wljx.hfut.edu.cn // @connect passport2.wljx.hfut.edu.cn //---------------------------------------- // @connect mooc1.hncj.edu.cn // @connect stat2-ans.hncj.edu.cn // @connect passport2.hncj.edu.cn //---------------------------------------- // @license GPL-3.0-or-later // @compatible firefox // @compatible chrome // @compatible edge // @downloadURL none // ==/UserScript== !!(function(){ GM_getValue('shenchanranToken',false)||GM_setValue('shenchanranToken','66666666666666666666666666666666'); const $w = unsafeWindow, $l = $w.location.href, $d = $w.document, $version = GM_info.script.version.replaceAll('.',''), getQueryVariable = (variable) => { let q = $w.location.search.substring(1), v = q.split("&"), r = false; for (let i = 0, l = v.length; i < l; i++) { let p = v[i].split("="); p[0] == variable && (r = p[1]); } return r; }, getCookie = name => `; ${document.cookie}`.split(`; ${name}=`).pop().split(';').shift(), entrance = (host)=>{ let classId = getQueryVariable('clazzid')||getQueryVariable('classid')||getQueryVariable('classId')||getQueryVariable('classId'), courseId = getQueryVariable('courseid')||getQueryVariable('courseId'), cpi=getQueryVariable('cpi')||'', courseName = $d.title.replace('-首页',''); $w.location.href = host + '/shenchanranCx?classid='+classId+'&courseid='+courseId+'&cpi='+cpi+'&coursename='+courseName; }, $uid = getCookie('UID')||getCookie('_uid'), randomString = (l=32)=> { let t = "abcdef1234567890", a = t.length, n = ""; for (i = 0; i < l; i++) n += t.charAt(Math.floor(Math.random() * a)); return n } if($l.includes('/mycourse/stu?')){ let $ = $w.jQuery||$w.$, popElement = `

该课程可一键刷课

确定
   
取消
`; setTimeout(()=>{ $(".coursenoticepop").empty(); $(".coursenoticepop").html(popElement); $("#fuckme").click(function(){ entrance($w.ServerHost.mooc1Domain.replace('https://','http://')) }); $("#fuckyou").click(()=>{ $(".closecoursepop").hide(); $(".coursenoticepop").hide(); }); $(".closecoursepop").show(); $(".coursenoticepop").show(); },1000); } else if($l.includes('mycourse/studentcourse?')&&!$l.includes('ans')){ setTimeout(()=>{ if(confirm('刷课吗?')){ entrance("http://"+$w.location.host); } },1000); } else if($l.includes('shenchanranCx')&&!$l.includes('passport2')){ $w.wait = false; if(!$version||$version==''||$version==undefined){ alert('请关闭其他同类型脚本,否则此脚本无法正常运行'); } try{ $w.checkConcurrency.push(6); }catch{ $w.checkConcurrency = [6] } if($w.checkConcurrency.length!=1){ if(parseInt('1'+''+$version)<=GM_getValue('nowVersion',0)){ alert('请勿多开脚本,请检查您开启的脚本数量'); return; } } GM_setValue('nowVersion',String(parseInt('1'+''+$version))); function request(data){ return new Promise((success,fail)=>{ if(data.method == undefined){ data.method = 'get'; } if(data.timeout == undefined){ data.timeout = 10000; } data.onload = function(res) { if(res.responseText.includes('用户登录')){ alert('登录状态失效,请重新登陆超星'); $w.location.href = $w.location.protocol+'//'+$w.location.host.replace(/mooc(.*?)\./ig,'passport2.')+'/login?fid=&newversion=true&refer='+encodeURIComponent($w.location.href); return; } success(res); } data.onerror= function(e) { let host = data.url.match(/^http(s)?:\/\/(.*?)\//)[0].replace(/^http(s)?:\/\//,'').replace('\/',''); if(typeof e == 'object'&&e.error.includes('Refused to connect to')){ $w.logs.addLog('
刚刚有一个跨域请求发送失败
👇请编辑脚本代码,将下方蓝色代码填入脚本指定空白中👇

// @connect '+host+'

👆请编辑脚本代码,将上面蓝色代码填入脚本指定空白中👆
别忘了保存并刷新页面哦'); $w.wait = true; }else if(typeof e == 'string'&&e.includes('permission')){ $w.logs.addLog('
刚刚有一个跨域请求发送失败
👇请编辑脚本代码,将下方蓝色代码填入脚本指定空白中👇

// @connect '+host+'

👆请编辑脚本代码,将上面蓝色代码填入脚本指定空白中👆
别忘了保存并刷新页面哦'); $w.wait = true; } try{$w.logs.addLog('请求错误','red');}catch(e){} if(!$l.includes('chaoxing.com')){ let classId = getQueryVariable('clazzid')||getQueryVariable('classid')||getQueryVariable('classId')||getQueryVariable('classId'), courseId = getQueryVariable('courseid')||getQueryVariable('courseId'); if(confirm('检测到您使用的是学校定制学习通,可能会出现使用问题\n可以尝试切换到学习通官方页面(需要重新登陆),是否切换?')){ $w.location.href = 'http://passport2.chaoxing.com/login?refer=http%3A%2F%2Fmooc1.chaoxing.com%2Fvisit%2Fstucoursemiddle%3Fcourseid%3D'+courseId+'%26clazzid%3D'+classId+'%26vc%3D1%26ismooc2%3D1%26v%3D2%26r%3D1&newversion=true&_blank=0'; } } console.log(e); success(false); } data.ontimeout= function() { success(false); } GM_xmlhttpRequest(data); }); } function jsonpRequest(url){ return new Promise((success,fail)=>{ let div = $d.getElementById('jsonp'); if(div==null){ let d = $d.createElement('div'); d.id = 'jsonp'; $d.getElementsByTagName('body')[0].appendChild(d); div = $d.getElementById('jsonp'); }else{ div.innerHTML = ''; } let s = $d.createElement('script'); s.src = url; div.appendChild(s); setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } setTimeout(()=>{ if($w.jsonpValue){ let result = $w.jsonpValue; $w.jsonpValue = false; success(result); } success(false); },1000); },1000); },1000); },1000); },1000); },500); },300); },100); },100); }); } function sleep(interval){ return new Promise((success,fail)=>{ setTimeout(success,interval); }); } $d.getElementsByTagName('body')[0].innerHTML='加载中。。。'; let host = false, beisu = 1, vgqtlv = 85, tkToken = GM_getValue('shenchanranToken',false), checkIframe = function(iframe){ return new Promise((success,fail)=>{ iframe.onload = function(){ success(); } }) } async function main(){ let hostList = [ 'jb.tk.icu/',//东南亚线路 'cf.xn--6cs.top/',//cf国际线路 'jb2.tk.icu/',//香港线路(不支持SSL) 'jb3.f12.cx/',//港台线路 'jb4.55q.icu/',//美国线路(不支持SSL) randomString(6)+'.y5z.site/'//防封美国线路(不支持SSL) ]; for(let i=0,l=hostList.length;i 超星刷课工具

课程名

任务设置: 视频任务  |  章节测试  |  文档任务


章节测试:自动提交 总开关:点我启动
脚本配置
您需要填写题库token才能连接题库答题
充值
查题成功一次扣除1次数
倍速大于1倍会被清空进度
正确率必须在0-100之间
保存 保存后会实时生效
任务
任务数量 : 共有-任务,剩余-任务
任务日志
[00:00:00]如果此提示不消失,说明页面出现了错误,请反馈