网课通用脚本

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

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

المؤلف
DriverLin
التثبيت اليومي
0
إجمالي التثبيت
5,576
التقييمات
5 0 0
الإصدار
0.7
تم إنشاؤه
23-04-2020
تم تحديثه
18-12-2020
الحجم
8.56 KB
الترخيص
لا يوجد
ينطبق على

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