Intelligent tree auto brush online course script

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 class="token function">$</span><span class="token punctuation">(</span><span class="token string">'.line1bq'</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">click</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
	<span class="token function">setTimeout</span><span class="token punctuation">(</span><span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token number">6000</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

    <span class="token function">setTimeout</span><span class="token punctuation">(</span><span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">$</span><span class="token punctuation">(</span><span class="token string">'.volumeIcon'</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">click</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token function">$</span><span class="token punctuation">(</span><span class="token string">'.speedTab15'</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">click</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">"Has been smooth+Mute+1.5 Double acceleration"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token number">6000</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    v<span class="token operator">++</span><span class="token punctuation">;</span>
    console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">"It's on now"</span> <span class="token operator">+</span> v <span class="token operator">+</span> <span class="token string">"One video"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</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>

Posted on Wed, 06 Nov 2019 12:10:48 -0500 by taith