您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动跳到下一节,简单免费,不会答题
// ==UserScript== // @name 超新学习助手,简单免费 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 自动跳到下一节,简单免费,不会答题 // @author bingkx // @match http://*.chaoxing.com/mycourse/studentstudy?* // @match */mycourse/studentstudy?* // @match *.chaoxing.com/mooc-ans/mycourse/studentstudy?* // @icon https://www.google.com/s2/favicons?sz=64&domain=chaoxing.com // @grant none // @run-at document-end // @license GPL3 // ==/UserScript== (function() { 'use strict'; // Your code here... window.playMyVideo=function(i) { if (videoAutoPlay == 0) { return; } var iframeArr = $("#iframe").contents().find("iframe.ans-insertvideo-online"); var iframeItem = iframeArr[i]; $(iframeItem).contents().find(".vjs-big-play-button").click(); } window.checkMyJob=function() { $("#jobFinishTip").hide(); var jobDiv = $("#iframe").contents().find(".ans-job-icon"); for (var i=0;i<jobDiv.length; i++){ if(!$(jobDiv[i]).parent().hasClass("ans-job-finished")){ return i; } } return -1; } alert=function (){}; //取消弹出窗口提示 window.checkEnd=function(){ autoCheckTime+=1; var check=checkMyJob(); if (check==-1){ var sta=JSON.parse($("#_studystate").val().replace("nextChapterId","\"nextChapterId\"").replace("unfinishCount","\"unfinishCount\"")); var nextChapterId=sta.nextChapterId; var curCourseId=$("#curCourseId").val(); var curChapterId=$("#curChapterId").val(); var curClazzId=$("#curClazzId").val(); if(nextChapterId){ getTeacherAjax(curCourseId,curClazzId,nextChapterId) } }else{ playMyVideo(check); } } window.autoCheckTM=setInterval(checkEnd, 60*1000); window.autoCheckTime=0; videoAutoPlay=1; })();