Bug fix
This commit is contained in:
@@ -264,6 +264,7 @@ function autoView() {
|
||||
currentCourse = document.getElementById('course');
|
||||
if (videoFrame && currentCourse) {
|
||||
currentCourse = currentCourse.selectedIndex;
|
||||
if (videoFrame.contentDocument.getElementsByClassName('wrap')[0]) {
|
||||
var textLength = videoFrame.contentDocument.getElementsByClassName('wrap')[0].innerText.length,
|
||||
isDone = videoFrame.contentDocument.getElementsByClassName('ans-attach-ct ans-job-finished')[0],
|
||||
courseLength = document.getElementById('course').length;
|
||||
@@ -275,6 +276,7 @@ function autoView() {
|
||||
console.log("刷课完成!");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (document.getElementsByClassName('cx-btn')[0])
|
||||
document.getElementsByClassName('cx-btn')[0].click();
|
||||
|
||||
Reference in New Issue
Block a user