Intelligent tree auto brush Video Script
Summary
As the website is updated, the pop-up window of questions in the process of playing video can be closed only after the questions are answered, so a sentence of selecting option is added (by the way, smooth picture quality click is added)
#Original script link
Problem pop-up
In the pop-up window to deal with the problem, the sentence selection option is added, because there is no need to ensure the correct answer, just click the option to close the pop-up window, so directly locate radio and click
$(':radio').click();- 1
.
Click on the fluent sentences
$('.line1bq').click();- 1
$('.line1bq').click(); setTimeout(function () {}, 2000);
- 1
- 2
(directly written in the function of 1.5 times speed and mute, the speed and mute cannot be realized because of the delay of refresh
Note: if you can't automatically switch between mute and speed doubling, just delete the two sentences of smooth picture quality
All code
var ti = $("body"); var video = $(".catalogue_ul1 li[id*=video-]"); var i = 1; var v = 1; video.css("color", "blue"); console.log("Selected" + video.length + "Subsection,And it has been marked in blue,Please check for any omissions,Omission,have no responsibility under any circumstances"); $('.line1bq').click(); setTimeout(function () { $('.speedTab15').click(); $('.volumeIcon').click(); console.log("Has been smooth+Mute+1.5 Double acceleration"); }, 3000); ti.on("DOMNodeInserted", function (e) { if (e.target.textContent == "Close") { $(':radio').click(); console.log("Detected No." + i + "Pop up window"); window.setTimeout(function () { document.getElementById("tmDialog_iframe").contentWindow.document.getElementsByClassName("answerOption")[0].getElementsByTagName("input")[0].click(); $(".popbtn_cancel").click(); console.log("Closed"); }, 3000); i++; } else if (e.target.textContent == "Video in this section,Cumulative viewing time『100%』") { console.log("Video viewing completion detected, ready to skip to next section"); $('.next_lesson_bg').find('a').trigger('click'); console.log("Jump"); <span>$</span><span>(</span><span>'.line1bq'</span><span>)</span><span>.</span><span>click</span><span>(</span><span>)</span><span>;</span> <span>setTimeout</span><span>(</span><span>function</span> <span>(</span><span>)</span> <span>{</span><span>}</span><span>,</span> <span>6000</span><span>)</span><span>;</span> <span>setTimeout</span><span>(</span><span>function</span> <span>(</span><span>)</span> <span>{</span> <span>$</span><span>(</span><span>'.volumeIcon'</span><span>)</span><span>.</span><span>click</span><span>(</span><span>)</span><span>;</span> <span>$</span><span>(</span><span>'.speedTab15'</span><span>)</span><span>.</span><span>click</span><span>(</span><span>)</span><span>;</span> console<span>.</span><span>log</span><span>(</span><span>"Has been smooth+Mute+1.5 Double acceleration"</span><span>)</span><span>;</span> <span>}</span><span>,</span> <span>6000</span><span>)</span><span>;</span> v<span>++</span><span>;</span> console<span>.</span><span>log</span><span>(</span><span>"It's on now"</span> <span>+</span> v <span>+</span> <span>"One video"</span><span>)</span><span>;</span> <span>}</span>
});
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
An error is reported in the background, but it does not affect the operation, so pretend not to see. jpg
</div> <link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-258a4616f7.css" rel="stylesheet"> </div>