zb213cs

河科院一键评教

目前為 2024-05-11 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         zb213cs
// @namespace    fuShe
// @version      1.3
// @description  河科院一键评教
// @author       fuShe
// @match       https://jxzlbz.hist.edu.cn:80/*
// @icon        http://jwgl.hist.edu.cn/favicon.ico
// @grant        none
// @license      none
// ==/UserScript==

        (function () {
            'use strict';
            // Your code here...
            setTimeout(() => {
                //获取评教按钮
                let dingshi2 = setInterval(() => {
                    let pingjias = document.querySelectorAll('.btn_theme')
                    if (pingjiaos) {
                        clearInterval(dingshi2)
                    }
                }, 1000)

                let ypjs = document.querySelectorAll('.ypj')
                let id = 0
                function xunhuan(id) {
                    pingjias[id].click()
                    setTimeout(() => {
                        let fenshus = document.querySelectorAll('.el-radio__original')
                        for (let i = 0; i < fenshus.length; i++) {
                            if (i % 7 === 0) {
                                fenshus[i].click()
                            }
                        }
                        let tijiao = document.querySelectorAll('.el-button--default')
                        tijiao[tijiao.length - 1].click()
                    }, 1000)
                }
                let dingshi = setInterval(() => {
                    //console.log(id,'id')//用来直观的查看
                    xunhuan(id)
                    id++
                    if (id >= pingjias.length) {
                        clearInterval(dingshi)
                    }
                }, 2000);
            }, 2000);
        })();