1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/qydysky-intelligent_tree_auto_play

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
代码.js 1.6 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
qydysky Отправлено 01.06.2019 16:42 1e75a9c
(function(){
function d(){
let dom=document.getElementsByTagName("video")[0],
gbc=(dom)=>{return document.getElementsByClassName(dom);};
if(!dom||!dom.duration)return;
if(dom.duration>dom.currentTime){
if(dom.paused)dom.play();
if(gbc("wrap_popboxes wrap_popchapter")[0]&&gbc("wrap_popboxes wrap_popchapter")[0].style.display!="none"){
setTimeout(function(){
var iframe = document.getElementById('tmDialog_iframe');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var mun=0;
while(1){
let domm=innerDoc.getElementsByClassName("answerOption")[mun];
if(!domm)break;
if(domm.children[0].children[0].getAttribute("_correctanswer")!="0")domm.children[0].children[0].click();
mun++;
}
gbc("popbtn_cancel")[0].click();
},1000);
}
return;
}
if(!gbc("next_lesson_bg tm_next_lesson")[0].children[0])return;
console.log('下一个视频');
gbc("next_lesson_bg tm_next_lesson")[0].children[0].click();
setTimeout(function(){
if(gbc("speedTab15")[0])gbc("speedTab15")[0].click();
},2000);
setTimeout(function(){
if(gbc("line1bq")[0])gbc("line1bq")[0].click();
},2000);
}
setInterval(d,3000);
})();

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/qydysky-intelligent_tree_auto_play.git
git@api.gitlife.ru:oschina-mirror/qydysky-intelligent_tree_auto_play.git
oschina-mirror
qydysky-intelligent_tree_auto_play
qydysky-intelligent_tree_auto_play
master