新疆干部在线学习 刷课 后台自动涨进度
介绍
这是给电脑上浏览器用的脚本,可以自动刷 新疆干部在线学习平台/新疆干部网络学院 的课程。
该平台网址:http://www.xjgbzx.cn/student/student!index.action?menu=2
功能
无需打开视频,自动涨进度
代码
小白可以跳到下面安装油猴脚本,这里给想学习JavaScript的同学看看。
var href = window.location.href//判断当前是正在学习页面if((href.indexOf("list.action") != -1) &&(href.indexOf("noStudy") == -1) ){ var id = document.getElementsByClassName("content")[0].getElementsByTagName("tbody")[0].getElementsByTagName("a")[0].onclick //获取课程id id = id.toString().substr(36,7) function okPlay() { $.ajax({ type: "GET", url: "http://www.xjgbzx.cn/portal/study!start.action?id="+id, async: false, success: function (d) { }, error: function () { } }); } okPlay() }
油猴
使用
正确安装后,进入必修课页面 http://www.xjgbzx.cn/student/course!list.action?course.course_type=0&init=yes
刷新以便脚本生效,接着过10秒钟,再次刷新,即可看到进度涨了!