智慧树全自动刷课脚本

自动下一集、自动静音播放、防暂停、跨页面持久运行

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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

Autor
Thxubi Segay
Installationen heute
0
Installationen gesamt
25
Bewertungen
0 0 0
Version
3.1
Erstellt am
08.12.2025
Letzte Aktualisierung
08.12.2025
Größe
2,26 KB
Lizenz
MIT
Wird angewandt auf

智慧树/知到 (Zhihuishu) 自动播放脚本

简介

这是一个轻量级的脚本,专为没有弹窗答题的智慧树/知到课程设计。 主要解决在自动跳转到下一集后,浏览器因“自动播放策略”导致视频暂停的问题。本脚本通过静音方式强制启动播放,实现全自动挂机。

核心功能

  • ✅ 自动下一集:精准监听视频结束事件 (ended),自动点击列表中的下一节。
  • ✅ 突破暂停限制:利用 muted=true 机制,解决网页刷新/跳转后视频默认暂停的问题(强制静音播放)。
  • ✅ 智能检测:每 2 秒轮询一次状态,如果视频异常暂停,脚本会自动尝试唤醒。

适用场景

  • 适用于没有视频内弹窗测验的课程(如形势与政策、军事理论等部分校内课)。
  • 注意:如果课程有弹窗题目,脚本可能会卡在题目处,需要人工辅助。

使用方法

  1. 安装 Tampermonkey (油猴) 插件。
  2. 安装本脚本。
  3. 打开智慧树网课播放页面。
  4. 手动刷新一次网页,脚本即可接管控制。
  5. 你可以把浏览器挂在后台,去写代码或者忙别的。

原理说明 (For Developers)

脚本通过遍历右侧 .file-item 列表查找 active 类名来定位当前课程,利用 video.play() 的 Promise 返回值处理浏览器的 Autoplay Policy 拦截。

免责声明

本脚本仅供学习交流使用,请勿用于商业用途。使用脚本产生的任何后果(如学习记录异常)请自行承担。 本脚本完全由AI生成* **2025年12月可用