Skip to content

ChaoXing ErYa Lessons Helper(超星尔雅课程助手)Wisdom Tree Lessons Helper(智慧树课程助手)

License

Notifications You must be signed in to change notification settings

HollowMan6/ChaoXing-ErYa-Wisdom-Tree-Lessons-Helper

Repository files navigation

超星尔雅、智慧树课程助手

last-commit release-date

Followers watchers stars forks

Open Source Love GPL Licence Repo-Size

Total alerts Language grade: JavaScript

(English version is down below)

优势:操作简单,无需安装配套软件,可视进度,安全;

开启功能只需点击按钮。如果想停止本脚本请刷新页面。

同时,你也可以通过Chrome 扩展程序下打开开发者模式,然后选择加载已解压的扩展程序,将对应插件文件夹下载到本地进行加载。

当然,如果你使用的是非 chrome 浏览器,你也可以打开对应视频播放页面,按 F12 打开开发者工具,复制对应的脚本代码,在 Console 中粘贴并按回车然后继续进行操作。

智慧树

智慧树课程助手脚本Chrome 扩展插件适用于智慧树慕课(即观看视频网页地址满足 *://studyh5.zhihuishu.com/videoStudy.html*)。

支持课程自动切换,自动 1.5 倍速静音播放,屏蔽弹题。

超星尔雅

脚本Chrome 扩展插件适用于超星尔雅慕课(即观看视频网页地址满足 *://*.chaoxing.com/mycourse/* )。

如果你觉得验证码或视频中的弹题很讨厌,请尝试也建议向兼容 AdBlock Plus 语法的广告过滤扩展添加这条自定义规则:

*.chaoxing.com/richvideo/initdatawithviewer*

支持 课程自动切换,自动静音播放(默认静音),自动倍速播放(如果可用),播放线路切换(需手动配置参数);

想要自动答题,5 秒内一节课都是高危不良行为)等功能的请绕道;

已知问题:已经显示完成的视频再次播放或自动播放的过程中手动进行跳转视频的操作将无法自动切换线路。且切换线路不够智能,只能切换到最后一个线路。

配置播放线路

建议在谷歌浏览器F12进入开发者模式,然后切换到console,在视频已经加载的前提下,首先输入以下命令:

let playline = $("iframe").contents().find("iframe").contents().find("li.vjs-menu-item.vjs-selected");

然后将下面命令的变量i0递增,进行尝试,当看到显示了线路名称,记下i,并对脚本对应的地方进行修改:

playline[1].nextElementSibling.click();

如果不想切换线路,则可以将切换线路防止切换线路多次不成功导致的问题注释包括的部分进行清理,并一并清理变量errorsn;

如果遇到某一章空白无任何视频内容,或者遇到同一课程小节多标签未标“视频”字样无法跳转问题,请手动取消源代码中相关注释并使用。

声明:将本脚本运用于任何不正当途径所产生的不良后果,本人将不承担任何责任。

因为时间有限,所以脚本做得有些简单,很有可能不太稳定,欢迎大家进行完善。

智慧树最新测试时间:2021 年 5 月 12 日,超星尔雅最新测试时间:2021 年 5 月 12 日,不能保证脚本在此之后一直有效

ChaoXing ErYa Wisdom Tree Lessons Helper

Advantages: simple operation, no need to install supporting software, visual progress, safety;

Just click the button when you want to activate the function. Refresh the page if you want to stop.

At the same time, you can also download this folder locally and using the Extensions by adding it to Chrome's Settings -> Extensions -> Developer Mode " turn on" -> Load Unpacked.

Of course, if you are not using Google Chrome, you can also open the corresponding video playing page, press F12 to open the developer tool, copy the corresponding script code, paste it in console and press enter to continue the operation.

Wisdom Tree

Wisdom-Tree-Lessons-Helper Script and Chrome-Extension are suitable for **Wisdom Tree MOOC(i.e. web address meets *://studyh5.zhihuishu.com/videoStudy.html*).

Support automatic course switching, playing at 1.5x speed in mute mode and hide the popped in questions.

ChaoXing ErYa

The script and Chrome-Extension are suitable for ChaoXing Erya MOOC (i.e. web address meets *://*.chaoxing.com/mycourse/*).

If you find the Captcha or questions block you from playing video annoying, try to add this custom rule to the AdBlock Plus grammar-compatible AD block extension as well:

*.chaoxing.com/richvideo/initdatawithviewer*

Support automatic course switching, automatic silent playback (default silence), auto max playing rate(if available), play line switching (manual configuration of parameters);

If you want more functions, such as automatic doing quizs, a lesson done in 5 seconds (all high-risk recorded behavior), this is not the right place and please go to others for help.

Known problem: The manual operation of jumping video in the process of replaying or playing the completed video will not automatically switch the Play line. Moreover, the playline-switching function is not smart enough, and can only switch to the last line.

Configuration of playback lines

It is recommended that F12 enter developer mode under Chrome, then switch to console. On the premise that the video has been loaded, first enter the following commands:

let playline = $("iframe").contents().find("iframe").contents().find("li.vjs-menu-item.vjs-selected");

Then increase the variable i of the following command from 0 to try. When you see the line name displayed, remenber the value of i and modify the corresponding place of the script:

playline[1].nextElementSibling.click();

If you don't want to switch lines, you can clean up the parts included in the notes Switching lines and Preventing problems caused by multiple unsuccessful switching lines, and clean up the variables errors and n together.

If you encounter a blank chapter without any video content, or if you encounter a problem that multiple labels of the same course section are not marked with 视频 and can not jump, please manually cancel the related comment in the source code and use it.

Statement: I will not bear any responsibility for the adverse consequences of using this script in any improper way.

Because of the limited time, the script is a little simple and probably not stable. Modifying and improving it is welcomed.

Wisdom Tree Latest Test time: May 12, 2021, ChaoXing ErYa Latest Test time: May 12, 2021, can not guarantee that the script will be always valid after the date;