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