Recently learning JavaScript and jquery, there is just one more MOOC not to see. Combining learning knowledge with other people's code: a code that automatically plays the course:
As follows:
var main=$ ("body"), var playtime=1;var testtime=1;var fininshed= "This section video, Cumulative viewing time" 100% "; var msg=$ ("<Li></Li>var json={"background": "#31e16d", "height": "20px", "padding": "5px", "Top": "700px", "Right": "80px", "position": "Fixed", "Color": "Blue"};msg.css (JSON); msg.html ("<span>Auto Play mode Welcome to add Xiao Chen QQ 759117419</span>"); Main.append (msg); SetTimeout (function () {Console.log (" mute + 1.5 times times Play ") $ (". SpeedTab15 "). Click (); $ (". Volumeicon"). Click ();},1000); SetTimeout (function () {$ ("#jack"). HTML ("Auto-play, Welcome to add Xiao Chen qq 759117419");},5000); Main.on ("domnodeinserted", function (e) {////Bullet box if (e.target.textcontent== "close") {testtime++; $ (". Popbtn_cancel"). Click (); Console.log ("help you to skip the test question"); }else if (e.target.textcontent==fininshed) {//video playback complete playtime++; Console.log ("Play finished, jump to the next section, currently playing" +playtime+ "video"); $ (". Next_lesson_bg"). Find (' a '). Trigger (' click '); SetTimeout (function () {Console.log ("Come on duck! "); $ (". SpeedTab15"). Click (); $ (". Volumeicon"). Click (); },2000); }});
How to use: 1. Open chrome or QQ Browser login account, enter the play page:
2. Right-click to view the page source code or press F12 to Enter the console page.
3. Copy and paste the above code into console , press ENTER, the page appears, you are done!
Note: 1. Please play from the beginning, the section tests that appear will skip directly, but chapter and final exams need to be done yourself. The amount of 50-60% can be brushed in about one day.
2. If you accidentally refresh the playback page, you need to repeat the above steps. Off the net, power outage is not within the scope of consideration.
3. If you encounter problems, please refresh the page to repeat the above steps.
4. Be careful not to use IE browser, we recommend using Chorome Browser and QQ browser (360 not tested).
Reference Blog: 80038082
Wisdom Tree MOOC automatic Brush Lesson Code