Greasy Fork is available in English.

雨课堂防暂停

防止雨课堂视频切屏暂停,提升学习体验

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
mtmtspace
Installationen heute
1
Installationen gesamt
75
Bewertungen
0 0 0
Version
1.0
Erstellt am
04.11.2025
Letzte Aktualisierung
04.11.2025
Größe
7,36 KB
Lizenz
MIT
Wird angewandt auf

雨课堂防暂停 - 脚本说明

📖 功能介绍

这是一个专为雨课堂平台设计的油猴脚本,解决视频播放时切换标签页导致自动暂停的问题。

核心功能:

  • ✅ 防止切换标签页时视频自动暂停
  • ✅ 防止最小化浏览器时视频自动暂停
  • ✅ 智能识别用户主动暂停操作(不会影响正常使用)
  • ✅ 支持键盘快捷键(空格键)和鼠标点击暂停

🚀 使用方法

  1. 安装 Tampermonkey 浏览器扩展
  2. 点击本页面的"安装此脚本"按钮
  3. 访问雨课堂网站观看视频
  4. 随意切换标签页,视频将继续播放 🎉

💡 工作原理

脚本通过以下技术手段实现防暂停功能:

  1. 欺骗页面可见性 API - 让网站始终认为页面可见
  2. 拦截可见性事件 - 阻止网站监听标签页切换事件
  3. 智能暂停检测 - 区分用户主动暂停和系统自动暂停
  4. 自动恢复播放 - 在非用户操作的暂停后自动恢复

⚙️ 技术特点

  • 🎯 精准识别 - 准确区分用户主动暂停和系统暂停
  • 🛡️ 安全可靠 - 不修改视频数据,不影响学习进度记录
  • 🪶 轻量高效 - 仅 230 行代码,不影响页面性能
  • 🔄 自动更新 - 支持通过 Tampermonkey 自动获取更新

📋 适用平台

  • ✅ 雨课堂 (yuketang.cn)
  • ✅ 学堂在线 (xuetangx.com)

⚠️ 注意事项

  1. 不影响学习进度 - 脚本不会修改播放进度或完成状态
  2. 尊重版权 - 请仅用于合法的学习用途
  3. 浏览器兼容 - 支持 Chrome、Edge、Firefox 等主流浏览器
  4. 用户隐私 - 脚本不收集任何用户数据,无网络请求

🐛 问题反馈

如遇到问题或有建议,欢迎反馈:

  • 在本页面下方留言评论
  • 或访问项目主页提交 Issue

📜 开源许可

本脚本采用 MIT 许可证开源,欢迎学习和改进。


祝学习愉快! 🎓