更新 'jumpserver/luna.user.js'

This commit is contained in:
502647092 2023-04-11 14:28:37 +00:00
parent 50b3df8c5a
commit 51f382891b

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name LUNA辅助扩展 // @name LUNA辅助扩展
// @namespace https://miaowoo.cc/ // @namespace https://miaowoo.cc/
// @version 0.1.7 // @version 0.1.8
// @description Jumpserver Web终端 扩展 // @description Jumpserver Web终端 扩展
// @author MiaoWoo // @author MiaoWoo
// @match https://jump.miaowoo.cc/luna/* // @match https://jump.miaowoo.cc/luna/*
@ -27,7 +27,7 @@
} }
window.onresize = adjust window.onresize = adjust
adjust() adjust()
for (const element of ['#assetsTree_2_span', '#assetsTree_4_span', '#assetsTree_6_span', '#assetsTree_9_span']) { for (const element of ['#assetsTree_2_span', '#assetsTree_4_span', '#assetsTree_5_span', '#assetsTree_7_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)