DingTalk

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

08.10.2022 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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);