🥇河南药师网刷课【影刃】

河南药师网刷课,功能:自动点击确定学习按钮。自助下单请前往影刃平台,在线帮助文档见:https://doc.yingren.xyz/

// ==UserScript==
// @name         🥇河南药师网刷课【影刃】
// @namespace    https://doc.yingren.xyz
// @icon         https://doc.yingren.xyz/img/logo2.jpg
// @version      2
// @description  河南药师网刷课,功能:自动点击确定学习按钮。自助下单请前往影刃平台,在线帮助文档见:https://doc.yingren.xyz/
// @author       影刃
// @match        https://www.hnysw.org/*
// @match        http://www.hnysw.org/*
// @grant        none
// @license      GPL 3
// ==/UserScript==

(function() {
    'use strict';
    if (location.pathname.includes('lessonDetails')) {
        function checkPageElements() {
            const confirmBtnSelector = 'div.layui-layer-btn.layui-layer-btn- > a:not([disabled])';
            const progressSelector = '#height .hour-right-bottom .progress.head';
            const nextBtnSelector = '#height .hour-right-bottom .button > a:nth-child(2) > button';

            // 处理确认弹窗
            const confirmButton = document.querySelector(confirmBtnSelector);
            if (confirmButton?.textContent.trim() === '确定') {
                confirmButton.click();
                return;
            }

            // 检查进度
            const progressElement = document.querySelector(progressSelector);
            if (progressElement?.textContent.includes('100%')) {
                const nextButton = document.querySelector(nextBtnSelector);
                nextButton?.click();
            }
        }

        const intervalTime = 2000;
        const intervalId = setInterval(checkPageElements, intervalTime);
        window.addEventListener('beforeunload', () => {
            clearInterval(intervalId);
        });
    }
})();

QingJ © 2025

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