网课通用脚本

通过自行填写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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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!)

Автор
DriverLin
Щоденних встановлень
0
Всього встановлень
5 576
Рейтинги
5 0 0
Версія
0.7
Створено
23.04.2020
Оновлено
18.12.2020
Size
8,6 кБ
Ліцензія
Н/Д
Відноситься до

通过填写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随时会挂 请自行修改