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扩展插件适用于超星尔雅慕课(即观看视频网页地址满足 *://*.chaoxing.com/mycourse/* )(*表示省略)。 参考Github上的这个项目,我也配置了智慧树课程助手脚本Chrome扩展插件,支持课程自动切换,自动播放, 1600秒播放计时,助你获得学习习惯分。

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

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

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

如果你觉得验证码或视频中的弹题很讨厌,请尝试也建议向兼容 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;

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

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

最新测试时间:2020年3月18日,不能保证脚本在此之后一直有效

ChaoXing ErYa Wisdom Tree Lessons Helper

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

Referring to that Repository on the Github, I also configure Wisdom-Tree-Lessons-Helper Script and Chrome extension plug-ins, which support automatic course switching and playing, and it ensures your grade for learning habits by countdownning 1600 seconds every time you use it.

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

Just click the button when you open it. Refresh the page if you want to stop.

At the same time, you can also download this folder locally and using the plugin by add it to Chrome Extension Program Developer Mode Loading the decompressed Extension Program.

If you find the the authentication code or questions block you from playing video annoying, try and recommend adding this custom rule to the AdBlock Plus grammar-compatible ad filtering extension as well:

*.chaoxing.com/richvideo/initdatawithviewer*

Functions

Support automatic course switching, automatic silent playback (default silence), 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 bad behavior) and quality switching, please refer to here(scripts are not tested by me and seem to be invalid)(Chinese Version);

It is suggested that with the help of some Wechat public accounts such as 小马搜题订阅号,问答库,殿下网络互联 , the questions after each lesson should be done by yourself.

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.

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.

Latest Test time: March 18, 2020, can not guarantee that the script will be always valid after the date;