Greasy Fork is available in English.
刷视频
< Feedback on 学习通刷课
是不是学习通更新了?我用不了,改了一下:1.判断剩余需要学习的小结if(i.querySelector('span[class $= "prevTips"]')&&i.querySelector('span[class$="name"]')&&i.querySelector('span[class $= "prevTips"]').innerText==(Number(x)+1) &&!i.innerText.includes('本章测验')&&!i.innerText.includes('阅读')&&!i.innerText.includes('直播')&&!i.innerText.includes('问卷调查')){改为if(i.querySelector('span[class $= "prevTips"]')&&i.querySelector('span[class$="name"]')&&i.querySelector('span[class $= "prevTips"]').innerText!='' &&!i.innerText.includes('本章测验')&&!i.innerText.includes('阅读')&&!i.innerText.includes('直播')&&!i.innerText.includes('问卷调查')){2.支持一个小结里面有多个视频的情况框架=document.querySelector('#iframe').contentWindow.document.querySelector("iframe").contentWindow改为框架=document.querySelector('#iframe').contentWindow.document.querySelector(".ans-attach-ct:not(.ans-job-finished)>iframe")?.contentWindow
可能是更新了吧,我这好久没有学习通的课了,改改能用的话就接着用吧
Yanıt göndermek için oturum açın.
是不是学习通更新了?我用不了,改了一下:
1.判断剩余需要学习的小结
if(i.querySelector('span[class $= "prevTips"]')&&i.querySelector('span[class$="name"]')&&i.querySelector('span[class $= "prevTips"]').innerText==(Number(x)+1)
&&!i.innerText.includes('本章测验')&&!i.innerText.includes('阅读')&&!i.innerText.includes('直播')&&!i.innerText.includes('问卷调查')){
改为
if(i.querySelector('span[class $= "prevTips"]')&&i.querySelector('span[class$="name"]')&&i.querySelector('span[class $= "prevTips"]').innerText!=''
&&!i.innerText.includes('本章测验')&&!i.innerText.includes('阅读')&&!i.innerText.includes('直播')&&!i.innerText.includes('问卷调查')){
2.支持一个小结里面有多个视频的情况
框架=document.querySelector('#iframe').contentWindow.document.querySelector("iframe").contentWindow
改为
框架=document.querySelector('#iframe').contentWindow.document.querySelector(".ans-attach-ct:not(.ans-job-finished)>iframe")?.contentWindow