# 融学国培网chinahrt.com刷课脚本 **Repository Path**: tuziang/chinahrt ## Basic Information - **Project Name**: 融学国培网chinahrt.com刷课脚本 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-18 - **Last Updated**: 2025-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 融学国培网chinahrt.com刷课脚本 ### 脚本介绍 该油猴脚本用于 融学国培网chinahrt.com 的辅助看课,使用JavaScript编写,适配网址:https://*.chinahrt.com/ **脚本功能如下:** 1.自动点击播放下一节视频 **脚本安装地址:** [https://scriptcat.org/zh-CN/script-show-page/4234](https://scriptcat.org/zh-CN/script-show-page/4234) 如果不会安装脚本,请按照下面安装教程来操作。 ### 代学服务 **如需代学,请联系客服,支持闲鱼交易。** - 微信联系:yizhituziang ![https://jiaobenmiao.com/img/weixin.jpg](https://jiaobenmiao.com/img/weixin.jpg) - QQ联系:2422270452 ![https://jiaobenmiao.com/img/qq.jpg](https://jiaobenmiao.com/img/qq.jpg) ### 安装教程 #### 1.安装浏览器扩展插件 首先需要给我们的浏览器安装上脚本猫插件,这是运行所有用户脚本的基础,如果浏览器已经安装过了脚本猫或者油猴插件,那么可以跳过这一步。推荐使用edge浏览器,安装插件更方便。 浏览器打开网址:[https://docs.scriptcat.org/](https://docs.scriptcat.org/) 这里用edge浏览器作为示范,点击 **“添加到Edge浏览器”** ![image-20250916183549234](https://jiaobenmiao.com/articleimg/image-20250916183549234.png) 接着点击 **“获取”** ![image-20250916183818025](https://jiaobenmiao.com/articleimg/image-20250916183818025.png) 在右上角弹出的窗口,点击 **“添加扩展”** ![image-20250916183841569](https://jiaobenmiao.com/articleimg/image-20250916183841569.png) 等待几秒钟,会提示已经安装好脚本猫插件了。 ![image-20250916183906107](https://jiaobenmiao.com/articleimg/image-20250916183906107.png) #### 2.安装刷课脚本 打开脚本安装地址后,在页面点击 **“安装脚本”** 按钮,接着在弹出的窗口点击 **“安装”** ,之后就会提示“安装成功”。 #### 3.体验脚本功能 安装脚本后,需要重新进入学习站点,如果之前已经打开课程学习页面,那么需要刷新页面后脚本才会生效。 ### 核心代码 ```js // 设置定时器一直检测,每10s检测一次 setInterval(() => { const nextButton = document.querySelector('[data-title="点击播放"]'); if (nextButton && nextButton.style.display !== "none") { // 获取 nextButton 的父元素 const parentElement = nextButton.parentElement; // 在父元素中查找 canvas 标签 const canvas = parentElement.querySelector('canvas'); if (canvas) { canvas.click(); console.log("自动点击了下一节按钮的 canvas"); } else { console.log("未找到 canvas 元素"); } } }, 10000); ```