更新 prevent_minmetals_timeout.user.js

This commit is contained in:
竟康 2025-07-17 08:20:55 +08:00
parent dc61d4fc62
commit 03150d3f9e
1 changed files with 19 additions and 18 deletions

View File

@ -1,19 +1,20 @@
// ==UserScript== // ==UserScript==
// @name 防止五矿电商超时掉线 // @name 防止五矿电商超时掉线
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 2024-11-06 // @version 2024-11-06
// @description try to take over the world! // @description try to take over the world!
// @author You // @author You
// @match https://ec.minmetals.com.cn/mainindex.jsp // @match https://ec.minmetals.com.cn/mainindex.jsp
// @icon https://www.google.com/s2/favicons?sz=64&domain=minmetals.com.cn // @match https://ec.minmetals.com.cn/logonAction.do
// @grant none // @icon https://www.google.com/s2/favicons?sz=64&domain=minmetals.com.cn
// ==/UserScript== // @grant none
// ==/UserScript==
(function () {
'use strict'; (function () {
// Your code here... 'use strict';
setInterval(async () => { // Your code here...
const res = await fetch('https://ec.minmetals.com.cn/secure/module/workspaces/page/modify-information') setInterval(async () => {
console.log('res:', res) const res = await fetch('https://ec.minmetals.com.cn/secure/module/workspaces/page/modify-information')
}, 1000 * 60) console.log('res:', res)
}, 1000 * 60)
})(); })();