DingTalk

这是个可以自动点击钉钉酷学院的脚本。

Stan na 08-10-2022. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         DingTalk
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  这是个可以自动点击钉钉酷学院的脚本。
// @author       ME
// @match        https://pro.coolcollege.cn/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

window.isDOMLoaded = false;
window.isDOMRendered = false;

document.addEventListener('readystatechange', function () {
    if (document.readyState === "interactive" || document.readyState === "complete") {
        window.isDOMLoaded = true;
    }
});
~function (global){
    'use strict';

 var cli = function(){
   var v = document.querySelector("video");
   v.playbackRate = 5;
    console.log("5倍速启动");
   var button = document.evaluate("//*[@class='prism-big-play-btn pause']", document).iterateNext();
   var button2 = document.evaluate("//*[@class='new-watch-course-page__right__catalog__item active']/following-sibling::div[1]", document).iterateNext();
   if (button != undefined && button != null) {
      button2.click();
      console.log("点击执行成功");
   }
 }
     var timer1 = setInterval(cli, 10000);
     // Your code here...
        if (global.eHook) {
         global.eHook.plugins({
             name: 'timer1',
             /**
              * 插件装载
              * @param util
              */
             mout: timer1
         });
     }
}(window);