Greasy Fork is available in English.

高校邦脚本(修改版)

高校邦刷课脚本,改自高校邦脚本,修改版版号GaoxiaoBBBB

Version au 06/12/2021. Voir la dernière version.


Installer ce script?
// ==UserScript==// @name         高校邦脚本(修改版)// @namespace    GaoxiaoBBBB && https://github.com/yuanYue-byte// @version      0.7// @description  高校邦刷课脚本,改自高校邦脚本,修改版版号GaoxiaoBBBB// @author       yuanYue, PY-DNG// @modifiedfrom https://gfork.dahi.icu/scripts/425374// @match        *://*.class.gaoxiaobang.com/class/*// @run-at       document-idle// @license      MIT// @icon         https://imooc.gaoxiaobang.com/image/imooc/imooc-logo.png// @grant        none// ==/UserScript==(function () {'use strict';setInterval(function () {// Get elementsconst allChapters = Object.values(document.querySelectorAll('i.gxb-icon-begin.student-chapter-status'));const unfinished = allChapters.filter((c)=>{return !c.className.includes('gxb-icon-end') && !c.parentElement.querySelector('.quiz-status-ico')});const next = unfinished[0].parentElement.querySelector('a.chapter-info');const video = document.querySelector('#video_player_html5_api');const videoPercent = document.querySelector('.video-percent');// Bypass exams and coursewaretry {if (document.querySelector(".quiz-item") || document.querySelector('.gxb-courseware-view-content')) {next.click();}if (document.getElementsByClassName("gxb-icon-teacher")[0]) {var a = document.getElementById("ueditor_0").contentWindow;// 如不需要自动回答请注释或删除(注释)第 33 34 行代码var answer = document.getElementsByClassName("reply-content")[0].innerText;a.document.getElementsByTagName("p")[0].innerText = answer;setTimeout(function () { document.getElementsByClassName("gxb-btn-pri gxb-btn-nav post-submit")[0].click(); }, 3000); //延迟3秒后自动提交setTimeout(function () { next.click(); }, 5000); //延迟5秒后自动点击下一章节}} catch (error) { console.log(error + "此页面为视频页面无需提交答案");}// Play video in 2x ratevideo && (video.playbackRate = 2);video && video.play();// Go to next chapter when finishedvideoPercent && videoPercent.innerText === '100' && next.click();}, 1000);})();