// ==UserScript== // @name [冬奥版]奥运奖牌提醒小助手 // @namespace https://bbs.tampermonkey.net.cn/ // @version 0.1.4 // @description 每半小时提醒一次奖牌数量,可以自己修改定时时间 // @author Wyz // @crontab 0/30 * * * * // @grant GM_xmlhttpRequest // @grant GM_notification // ==/UserScript== return new Promise((resolve, reject) => { GM_xmlhttpRequest({ url: "https://tiyu.baidu.com/beijing2022/home/tab/%E5%A5%96%E7%89%8C%E6%A6%9C/from/pc", onload(resp) { console.log(resp.responseText); const regex = /