cq_auto_script

private script

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         cq_auto_script
// @namespace    skeleton
// @version      3.0.0
// @description  private script
// @author       skeleton
// @match        *://*.chaoxing.com/space/*
// @run-at       document-end
// @grant        unsafeWindow
// @license MIT
// ==/UserScript==
 
 
(function() {
 
    'use strict';
    setTimeout(()=>{
        const win = unsafeWindow.document.querySelector('iframe').contentWindow
        win.getStudied?.()

        setTimeout(()=>{
            // 随机看课
            const links = Array.from(win.document.querySelectorAll('.w_cournopadd .w_cour_txt a'))
            const count = parseInt(Math.random() * links.length)
            links[count]?.click()
        },10000)
    },5000)
})();