网课通用脚本

通过自行填写JSON文件 识别XML路径自动答题

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
DriverLin
Daily installs
0
Total installs
5,576
Ratings
5 0 0
Version
0.7
Created
2020-04-23
Updated
2020-12-18
Size
8.56 KB
License
N/A
Applies to

通过填写json文件 可以实现通用的网课自动作答

通过选择对应元素,实现自动搜索作答

题目加载完毕后,按S开始,输入对应的JSON配置,开始自动作答

  • 配置文件说明

    {
    "mainElecs": "",//题目节点
    "questionText": "",//相对于题目节点的问题节点 text()获取题目
    "questionNum": "",//相对于题目节点的问题节点 text()获取题号
    "questionInput": "",//相对于题目节点的问题节点 click()选择
    "answer": ""//相对于题目节点的答案节点 text()为答案文字
    }
  • 示例:

    学堂在线


    {
    "mainElecs": ".paper-list>li",
    "questionText": "span.content",
    "questionNum": "span.num",
    "questionInput": "input",
    "answer": ".answer>label>span"
    }

    学习通


    {
    "mainElecs": "div.TiMu>li",
    "questionText": "div.clearfix>div:nth-child(1)",
    "questionNum": "div>i.fl",
    "questionInput": "li.clearfix>a",
    "answer": ".answer>li.clearfix>a>span"
    }

自行修改@match字段以匹配其他网站

api随时会挂 请自行修改