UserScript/jumpserver/luna.user.js

34 lines
1.1 KiB
JavaScript

// ==UserScript==
// @name LUNA辅助扩展
// @namespace https://miaowoo.cc/
// @version 0.1.4
// @description Jumpserver Web终端 扩展
// @author MiaoWoo
// @match https://jump.miaowoo.cc/luna/*
// @grant none
// ==/UserScript==
(function () {
'use strict'
var version = document.querySelector('.footer-version')
version.innerHTML = version.innerHTML.replace('Version', '')
function adjust() {
document.querySelector('.left-side').style.maxWidth = '11.5%'
document.querySelector('.content').style.maxWidth = '88.5%'
}
window.onresize = adjust
setTimeout(function () {
document.querySelector('#myAssets_3_span').click()
setTimeout(function () {
document.querySelector('#myAssets_5_span').click()
setTimeout(function () {
document.querySelector('#myAssets_14_span').click()
setTimeout(function () {
document.querySelector('#myAssets_17_span').click()
}, 300)
}, 300)
}, 300)
}, 300)
adjust()
})()