贵州省建筑施工企业安管人员”考试系统自动勾选答案脚本

免费使用

// ==UserScript==
// @name         贵州省建筑施工企业安管人员”考试系统自动勾选答案脚本
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  免费使用
// @author       牵马过河
// @match        http://gzak.gzsjzyxh.cn/exam/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function selectRandomAnswers() {
        // 遍历所有的题目
        const questions = document.querySelectorAll('.jQuesItem');
        questions.forEach(question => {
            // 获取当前题目的所有答案选项
            const answers = question.querySelectorAll('.check-main');
            if (answers.length) {
                // 随机选择一个答案
                const randomIndex = Math.floor(Math.random() * answers.length);
                answers[randomIndex].checked = true;
            }
        });

        // 随机点击一个题目选项
        const randomQuestion = questions[Math.floor(Math.random() * questions.length)];
        const randomOption = randomQuestion.querySelector('.check-main');
        if (randomOption) {
            randomOption.click();
        }
    }

    // 延迟3秒后执行选择答案的函数
    setTimeout(selectRandomAnswers, 3000);

    // 延迟5秒后执行点击操作
    setTimeout(() => {
        const questions = document.querySelectorAll('.jQuesItem');
        const randomQuestion = questions[Math.floor(Math.random() * questions.length)];
        const randomOption = randomQuestion.querySelector('.check-main');
        if (randomOption) {
            randomOption.click();
        }
    }, 5000);

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址