// ==UserScript== // @name 华医网弹窗自动点击(不带答题) // @namespace http://tampermonkey.net/ // @version 2024-11-13 // @description 未实现带选项的弹窗,仅仅是不带答案的弹窗 // @author niushuai233 // @match https://*.91huayi.com/course_ware/course_ware_polyv.aspx?* // @icon https://www.google.com/s2/favicons?sz=64&domain=91huayi.com // @require https://update.greasyfork.org/scripts/494892/1376206/jquery-351.js // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; var ccciii = setInterval(function(){ var zhidaole_button = Array.from($("button")).find(button => button.innerText === '知道了'); if (zhidaole_button) { zhidaole_button.click() console.log('知道了 clicked at '+ new Date().toString()) } var haode_zhidaole_button = Array.from($("button")).find(button => button.innerText === '好的,知道了'); if (haode_zhidaole_button) { haode_zhidaole_button.click() console.log('好的,知道了 clicked at '+ new Date().toString()) } }, 5000) })();