结贴,油猴脚本直接搞定
```javascript
// ==UserScript==
// @
name Click Old Version Nav
// @
namespace http://tampermonkey.net/// @
version 1.0
// @
description Click on the old version nav button on Aliyun ECS console
// @
author Your Name
// @
match https://ecs.console.aliyun.com/*// @
grant none
// ==/UserScript==
(function() {
'use strict';
function checkAndClick() {
const oldVersionNav = document.getElementsByClassName("erc-icon-switch")
if (oldVersionNav.length ) {
oldVersionNav[0].click()
console.log('Clicked on old version nav!');
}
}
setInterval(checkAndClick, 500);
})();
```