{"id":50108774,"url":"https://github.com/lucky845/ouchn-course-brusher-script","last_synced_at":"2026-05-23T12:02:58.258Z","repository":{"id":359494790,"uuid":"1219528912","full_name":"lucky845/ouchn-course-brusher-script","owner":"lucky845","description":"国家开放大学实验学院自动刷课脚本-简易自用版","archived":false,"fork":false,"pushed_at":"2026-05-22T05:47:38.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T14:03:06.542Z","etag":null,"topics":["ouchn","script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucky845.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-24T01:04:37.000Z","updated_at":"2026-05-22T05:47:09.000Z","dependencies_parsed_at":"2026-05-22T14:03:25.381Z","dependency_job_id":null,"html_url":"https://github.com/lucky845/ouchn-course-brusher-script","commit_stats":null,"previous_names":["lucky845/ouchn-course-brusher-script"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lucky845/ouchn-course-brusher-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucky845%2Fouchn-course-brusher-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucky845%2Fouchn-course-brusher-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucky845%2Fouchn-course-brusher-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucky845%2Fouchn-course-brusher-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucky845","download_url":"https://codeload.github.com/lucky845/ouchn-course-brusher-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucky845%2Fouchn-course-brusher-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33394672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ouchn","script"],"created_at":"2026-05-23T12:02:49.422Z","updated_at":"2026-05-23T12:02:58.249Z","avatar_url":"https://github.com/lucky845.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 国家开放大学实验学院自动刷课脚本\n\n这是一个自动刷完学习项目的脚本，适用于国家开放大学实验学院的 Moodle 平台。（个人自用）\n\n## 功能特点\n\n- 🎓 **自动识别学习项目**：自动检测课程页面中的视频、文档等学习项目\n- 📊 **实时进度显示**：显示当前学习进度（当前位置/总数）\n- ⚡ **速度控制**：支持正常/快速/低调三种模式\n- 🔒 **防息屏功能**：防止电脑/手机息屏，方便挂机刷课\n- 🛡️ **防检测机制**：模拟真人行为，随机滚动页面\n- 💾 **会话持久化**：刷新页面后保留刷课统计\n- 🎨 **现代化UI**：美观的控制面板，支持拖拽定位\n\n## 安装方法\n\n1. 安装浏览器扩展 [Tampermonkey](https://www.tampermonkey.net/)（油猴）\n2. 点击 [安装脚本](https://github.com/lucky845/ouchn-course-brusher-script/raw/main/ouchn-course-brusher.user.js)\n3. 按提示完成安装\n\n## 使用方法\n\n1. 登录国家开放大学实验学院 Moodle 平台\n2. 进入课程页面\n3. 点击悬浮的 🎓 按钮打开控制面板\n4. 点击「开始」按钮启动自动刷课\n\n## 控制面板说明\n\n| 功能 | 说明 |\n|------|------|\n| 当前/总数 | 显示当前学习位置和总项目数 |\n| 速度模式 | 正常/快速/低调三种速度可选 |\n| 启用脚本 | 总开关，控制脚本运行状态 |\n| 防检测模式 | 开启后模拟真人行为 |\n| 开始/停止 | 控制脚本启停 |\n\n## 更新日志\n\n### v1.6.3 (2025-05-23)\n- 📝 **消息常量枚举**：集中管理所有提示消息，提升代码可维护性\n- 🔧 **启动提示修复**：启用脚本时正确显示\"脚本已恢复\"而非\"防息屏已开启\"\n- 🐛 **代码优化**：修复 goToNextItem 函数缩进问题\n- ⚡ **内存管理优化**：添加视频 interval 清理逻辑，防止内存泄漏\n- ⌨️ **快捷键支持**：按 ESC 键可关闭控制面板\n- 🔒 **稳定性提升**：优化 WakeLock 重连逻辑，防止竞态条件\n\n### v1.6.2 (2025-05-23)\n- 🎬 **视频倍速功能优化**：视频播放速度调节仅在快速模式下可用\n- 🔄 **智能模式切换**：切换到非快速模式时自动重置视频速度为1x\n- 🔒 **速度锁定增强**：完善反限速机制，对抗网站速度限制\n\n### v1.6.1 (2025-05-23)\n- 🔒 **新增反限速机制**：防止网站强制将视频速度改回1x\n- ⚙️ **属性劫持**：拦截视频 playBackRate 属性修改\n- ⏱️ **定时守护**：每500ms检查并恢复播放速度\n\n### v1.6.0 (2025-05-23)\n- 🎬 **新增视频播放速度设置**：支持1x/1.5x/2x/3x四种速度\n- ⚡ **智能应用**：仅在视频页面应用倍速设置\n- ✨ **实时调整**：播放过程中可动态调整速度\n- 💾 **设置持久化**：播放速度自动保存\n\n### v1.5.0 (2025-05-23)\n- 🔒 **新增防息屏功能**：防止电脑/手机息屏，方便挂机刷课\n- ⚙️ **防息屏开关控制**：可在控制面板中随时开启/关闭防息屏功能\n- 🔄 **智能唤醒机制**：支持浏览器 Wake Lock API，自动恢复唤醒状态\n- 📱 **兼容降级方案**：不支持 Wake Lock 的浏览器使用隐藏视频方案\n\n### v1.4.0 (2025-05-22)\n- ✨ 全新现代化UI设计，紫蓝渐变主题\n- 📊 新增实时进度显示功能\n- ⚡ 新增速度控制（正常/快速/低调）\n- 🛡️ 新增防检测模式\n- 💾 新增会话统计持久化\n- 🎨 优化开关按钮样式\n- 🔧 重构代码结构，精简优化\n- 🐛 修复页面刷新后统计重置问题\n\n### v1.3.0 (历史版本)\n- 基础自动刷课功能\n- 视频自动播放\n- 侧边栏导航\n\n## 注意事项\n\n- 本脚本仅供个人学习使用\n- 请遵守平台使用规则\n- 建议开启防检测模式以降低风险\n\n## 开源协议\n\nMIT License\n\n## 作者\n\nlucky845\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucky845%2Fouchn-course-brusher-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucky845%2Fouchn-course-brusher-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucky845%2Fouchn-course-brusher-script/lists"}