21tb课程通杀

bot4u

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         21tb课程通杀
// @namespace    bot4u
// @version      0.1
// @description  bot4u
// @author       perdow
// @match        *.21tb.com/els/html/courseStudyItem/courseStudyItem.learn.do?courseId=*
// @require      https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
// @run-at       document-end
// @license      MIT
// ==/UserScript==
 
(function() {
    'use strict';
 

window.onload=function lll(){document.getElementsByClassName('title')[0].innerText="BOT FOR YOU"}
    function sudu() {
document.querySelector('iframe').contentWindow.document.querySelectorAll('video')[0].playbackRate = 7;
    }
   setInterval(sudu, 100);//
 function enterCourse() {
      document.querySelector('iframe').contentWindow.document.querySelectorAll('li.section-item')[document.querySelector('iframe').contentWindow.document.querySelectorAll('li.section-item.finish').length].click();
  //window.location.reload()
 }
var myTimer = setInterval(enterCourse, 50000);
 
  })();