这个是个 Tampermonkey 脚本,打开脚本控制台加入即可。
// ==UserScript==
// @name 阿里云腾讯云控制台登录保活
// @namespace https://www.tintsoft.com
// @version 0.1
// @description Aliyun Session lift
// @author Larva
// @match *://*.console.aliyun.com/*
// @match *://*.cloud.tencent.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var localurl = location.href;
function session_life() {
document.getElementById('session_life').contentWindow.location.reload(true);
}
function init(){
var session_life = document.createElement("iframe");
session_life.id = 'session_life';
session_life.style = 'width: 0px; height: 0px; display: none;';
session_life.src = localurl;
document.body.appendChild(session_life);
console.info('状态保活!');
}
init();
setInterval(session_life, 5000);
})();