更新 'jumpserver/luna.user.js'
This commit is contained in:
parent
fa2ffcc4d2
commit
0a42eebebf
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name LUNA辅助扩展
|
// @name LUNA辅助扩展
|
||||||
// @namespace https://miaowoo.cc/
|
// @namespace https://miaowoo.cc/
|
||||||
// @version 0.1.6
|
// @version 0.1.7
|
||||||
// @description Jumpserver Web终端 扩展
|
// @description Jumpserver Web终端 扩展
|
||||||
// @author MiaoWoo
|
// @author MiaoWoo
|
||||||
// @match https://jump.miaowoo.cc/luna/*
|
// @match https://jump.miaowoo.cc/luna/*
|
||||||
@ -22,10 +22,12 @@
|
|||||||
var content = document.querySelector('.content')
|
var content = document.querySelector('.content')
|
||||||
content.style.maxWidth = '88.5%'
|
content.style.maxWidth = '88.5%'
|
||||||
content.style.flex = '0 0 calc(88.5% - 0px)'
|
content.style.flex = '0 0 calc(88.5% - 0px)'
|
||||||
|
document.getElementById('batchCommandDiv').remove()
|
||||||
|
document.getElementById('winContainer').style.height = "calc(100% - 30px)"
|
||||||
}
|
}
|
||||||
window.onresize = adjust
|
window.onresize = adjust
|
||||||
adjust()
|
adjust()
|
||||||
for (const element of ['#myAssets_3_span', '#myAssets_5_span', '#myAssets_7_span', '#myAssets_10_span']) {
|
for (const element of ['#assetsTree_2_span', '#assetsTree_4_span', '#assetsTree_6_span', '#assetsTree_9_span']) {
|
||||||
let target = undefined
|
let target = undefined
|
||||||
while ((target = document.querySelector(element)) == undefined) {
|
while ((target = document.querySelector(element)) == undefined) {
|
||||||
await sleep(50)
|
await sleep(50)
|
||||||
|
Loading…
Reference in New Issue
Block a user