思路
云课堂的本质是一个(套壳的)网页,可以用抓包软件分析记录学习进度请求,再通过修改这个请求并重发来修改学习进度。
提示
该方法仅 PC 端可用(其实手机也不是不行)。
一、安装 Fiddler
点击这里下载安装。
二、设置 Fiddler 捕获 HTTPS 流量
打开 Fiddler,点击顶栏 “Tools”,在弹出的菜单中点击 “Options…”。
在弹出的窗口中切换到顶部的 “HTTPS” 菜单,勾选 “Capture HTTPS CONNECTs” 和 “Decrypt HTTPS traffic” 复选框,然后点击 OK。
勾选后会弹出安装证书的窗口,确认即可。
如果出现下面这样的黄条,点击黄条即可。
三、写入脚本
在 Fiddler 中按下 Ctrl+R
。弹出一个代码编辑器窗口。
在代码编辑器窗口按下 Ctrl+F
,在弹出的窗口中输入 OnBeforeResponse 并按下回车。找到 OnBeforeResponse 函数(下图所示)。
把
static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
}
替换成下面的代码,然后按下 Ctrl+S
来保存。
下方代码已经整合 【一劳永逸】钉钉云课堂倍速播放教程 中的代码(看过这篇教程的,可以把原来的代码删掉用下面的)。
以下代码部分来自 HTML5播放器增强插件,对原作者深表感谢!
以下代码参考 aneasystone's blog: 通过FiddlerScript实现根据条件重发请求,对博主深表感谢!
public static RulesOption("视频增强插件")
var m_H5VideoPlayerExtension: boolean = true;
public static RulesOption("自动学习")
var m_AutoLearn: boolean = true;
static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
var sToInsert = "";
if (m_H5VideoPlayerExtension) {
sToInsert += "<script src=data:application/javascript;base64,KGZ1bmN0aW9uKCl7dmFyIGh0bWxfcGxheWVyX2VuaGFuY2U9e2ZvbnRTaXplOjIwLHBsYXllcjpmdW5jdGlvbigpe3JldHVybiBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCJ2aWRlbyIpfSx0aXBzOmZ1bmN0aW9uKHN0cil7dmFyIHN0eWxlPWRvY3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aXMubG9hZD10cnVlO3NldFRpbWVvdXQoZnVuY3Rpb24oKXtjb25zb2xlLmxvZygi5qOA5rWL5YiwSFRNTDXop4bpopHvvIEiKTtjb25zb2xlLmxvZyghX3RoaXMubG9hZCk7X3RoaXMubG9hZD1mYWxzZTtfdGhpcy5maWx0ZXIucmVzZXQoKTtfdGhpcy5zZXR0aXBzKCk7X3RoaXMuaXNGb3VjcygpO2RvY3VtZW50Lm9ua2V5ZG93bj1fdGhpcy5idXR0b259LDEwMDApfX19LGxvYWQ6ZmFsc2V9O2h0bWxfcGxheWVyX2VuaGFuY2UuaW5pdCgpO2RvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoIkRPTU5vZGVJbnNlcnRlZCIsZnVuY3Rpb24oKXtodG1sX3BsYXllcl9lbmhhbmNlLmluaXQoKX0pfSkoKTs=></script>";
}
oSession.utilDecodeResponse();
oSession.utilReplaceOnceInResponse('</head>', sToInsert + '</head>', 0);
if (m_AutoLearn && !oSession.GetRequestBodyAsString().Contains("\"courseTime\":9990,\"learnTime\":60,\"type\":2")
&& oSession.hostname == "saas.daxue.dingtalk.com" && oSession.PathAndQuery == "/dingtalk/course/record.jhtml"){
FiddlerApplication.Log.LogString("FOUND!!!");
var raw = "";
var method:String = oSession.RequestMethod;
var url:String = oSession.fullUrl;
var protocol = "HTTP/1.1";
FiddlerApplication.Log.LogString(method + " " + url + " " + protocol);
raw += method + " " + url + " " + protocol + "\r\n";
var body = oSession.GetRequestBodyAsString();
body = body.replace(/"courseTime":\d+,"learnTime":\d+,"type":\d/g,"\"courseTime\":9990,\"learnTime\":60,\"type\":2");
FiddlerApplication.Log.LogString(body.Length);
for (var i:int = 0; i < oSession.oRequest.headers.Count(); i++) {
var header = oSession.oRequest.headers[i];
header = header.ToString()
FiddlerApplication.Log.LogString(header)
if(header.Contains("Content-Length")){
header = "Content-Length: "+(body.Length).ToString()
}
raw += header + "\r\n";
}
raw += "\r\n" + body;
for (var j:int = 0; j < 10; j++) {
FiddlerObject.utilIssueRequest(raw);
FiddlerApplication.Log.LogString("Request has been Send.");
System.Threading.Thread.Sleep(5000);
}
}
}
四、看视频
看视频的时候,每次刷新页面(包括第一次进入视频页面时的加载)程序会花 1 min 时间给视频增加 10 min 的学习进度。保险起见,请不要频繁刷新。
Log 选项卡中,每出现一条Resquest has been Send.
说明学习进度增加了 1 min。快速出现大量Resquest has been Send.
时,可能是刷新过于频繁或程序错误,请立刻关闭 Fiddler。如果 Fiddler 未响应,可能是陷入死循环,立刻在任务管理器里结束进程。
在 Rules 中可以启用或关闭 视频增强插件
和 自动学习
。
快捷键说明
播放速度调节
按键C:加速播放 +0.1
按键X:减速播放 -0.1
按键Z:正常速度播放
播放时间定位
方向键右→:快进3秒
方向键左←:后退3秒
按键F:下一帧
按键D:上一帧
音量调节
方向键上↑:音量升高 1%
方向键下↓:音量降低 1%
图像参数调节
按键E:亮度增加%
按键W:亮度减少%
按键T:对比度增加%
按键R:对比度减少%
按键U:饱和度增加%
按键Y:饱和度减少%
按键O:色相增加 1 度
按键I:色相减少 1 度
按键K:模糊增加 1 px
按键J:模糊减少 1 px
按键Q:图像复位
画面调节
按键S:画面旋转 90 度
按键回车:进入全屏(只支持部分网站 B站,油管)。
兼容性问题
可以使用组合键临时停用插件,例如 播放/暂停 默认为空格键,那么使用Ctrl+space(空格键)即可暂停使用一次插件。
来源:oschina
链接:https://my.oschina.net/u/4406491/blog/4481635