├── img ├── wx.png ├── zfb.png └── design-sketch.png ├── main ├── app.js ├── special_cont.min.js ├── cont.min.js └── special_cont.js ├── LICENSE ├── README.md └── 智慧职教刷课脚本.js /img/wx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsjzhcq/auto-play-course/HEAD/img/wx.png -------------------------------------------------------------------------------- /img/zfb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsjzhcq/auto-play-course/HEAD/img/zfb.png -------------------------------------------------------------------------------- /img/design-sketch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hsjzhcq/auto-play-course/HEAD/img/design-sketch.png -------------------------------------------------------------------------------- /main/app.js: -------------------------------------------------------------------------------- 1 | var typeHome = ["https://zjy2.icve.com.cn", "https://mooc.icve.com.cn","https://www.icve.com.cn"], //平台类型数组 2 | typeIndex = typeHome.indexOf(location.origin); //当前平台 3 | if (typeIndex === -1) { //如果当前脚本执行环境不为在数组内,则进行转跳 4 | let t = +prompt("当前域名无法执行脚本,输入1转跳职教云,输入2转跳智慧职教,输入3转跳资源库,其他取消转跳"); //转number型 5 | isNaN(t) ? t = 0 : ""; //判断转类型后是否为NaN 6 | switch (t) { //根据输入转跳 7 | case 1: 8 | case 2: 9 | case 3: 10 | window.location.href = `${typeHome[t - 1]}`; 11 | break; 12 | } 13 | }else{ 14 | $("body").append(`