电子科技大学安全手册挂机,4分钟刷新一次
// ==UserScript== // @name 电子科技大学安全教育与管理平台/安全手册挂机 // @namespace https://github.com/FoxSuzuran // @version 1.0 // @description 电子科技大学安全手册挂机,4分钟刷新一次 // @author Suzuran // @match https://labsafetest.uestc.edu.cn/* // @license MIT // @grant GM_addStyle // @grant unsafeWindow // ==/UserScript== function checkForTextAndRefresh() { const hasLearningText = document.body.innerText.includes("你正在进行在线学习"); const hasManualText = document.body.innerText.includes("电子科技大学实验室安全手册"); if (hasLearningText && hasManualText) { setInterval(function () { location.reload(); }, 4 * 60 * 1000); } } checkForTextAndRefresh();