江苏开放大学刷课脚本-解决有些课程无法点击问题

江苏开放大学刷课脚本- 解决有些课程无法点击问题

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
曾舒琪
Daily installs
0
Total installs
69
Ratings
0 0 0
Version
1.1
Created
2023-03-13
Updated
2023-03-13
Size
4.5 KB
License
MIT
Applies to

// ==UserScript==
// @name 江苏开放大学刷课脚本
// @namespace http://tampermonkey.net/
// @version 1.1
// @description 江苏开放大学刷课脚本-
// @author Pwn
// @match http://xuexi.jsou.cn/jxpt-web/student/courseuser/courseContent?courseVersionId=*
// @match http://xuexi.jsou.cn/jxpt-web/student/activity/display?courseVersionId=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=jsou.cn
// @grant unsafeWindow
// @license MIT
// ==/UserScript==
function StartRunCourse()
{
for(var i=0;i<300;i++)
{
sendHeartBeatAjax();//调用原生方法
}
}

function InjectClickButton()//修改按钮
{
var StartTree = document.evaluate('//*[@id="courseContent_1_switch"]',document).iterateNext();
var ShowText =document.evaluate('//*[@id="courseContent_1_a"]',document).iterateNext();
ShowText.textContent = "点击一键完成本课";
ShowText.style.color="red";
StartTree.removeAttribute("treenode_switch");
StartTree.onclick=()=>{StartRunCourse()}
ShowText.onclick=()=>{StartRunCourse()}
}

function GetDocId()
{
var DocActivy = document.getElementsByClassName('activity doc');
var DocIds = []
for(var i=0;i