河南省教育人才学会网络学院 专业技术人员继续教育 最简单的自动切换视频
本帖最后由 冰茶荼 于 2020-6-16 11:13 编辑var pattern = /https:\/\/learning.haetjxjy.com\/course\/55\/task\/(\d*)\/show#/g;
var num=window.top.location.href.replace(pattern,"$1");
console.log("script start");
console.log(`now course:${num}`);
console.log(`next course:${(parseInt(num)+1)}`);
console.log(`next course Url:${"https://learning.haetjxjy.com/course/55/task/"+(parseInt(num)+1)+"/show#"}`);
window.addEventListener('message', function(event){
if(event.data=='PlayerProject|parent__Messenger__{"eventName":"ended","args":{"stop":true}}'){
location.去掉href 去掉= "https://learning.haetjxjy.com/course/55/task/"+(parseInt(num)+1)+"/show#";
}
}, false);
准备文件:把https://learning.haetjxjy.com/static-dist/app/js/task/index.js?version=8.3.0内容复制到一个新建js文件,把上面的代码粘贴进去;
没有那么多废话,具体用法如下:
Fildder->AutoResponder->Add Rule->第一行写“https://learning.haetjxjy.com/static-dist/app/js/task/index.js?version=8.3.0”
->第二行点击右边下拉选项选择"Find a File"选中准备好的文件->save->Enable rules->Unmatched requests passthrough;
效果图
大佬。。完全看不懂啊。能不能出个小白用的呀。谢谢谢谢谢
页:
[1]