Browse Source

更新 'jumpserver/luna.user.js'

master
502647092 7 months ago
parent
commit
97b94e13e6
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      jumpserver/luna.user.js

+ 9
- 5
jumpserver/luna.user.js View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name LUNA辅助扩展
// @namespace https://miaowoo.cc/
// @version 0.1.4
// @version 0.1.5
// @description Jumpserver Web终端 扩展
// @author MiaoWoo
// @match https://jump.miaowoo.cc/luna/*
@ -13,8 +13,12 @@
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%'
var left_side = document.querySelector('.left-side')
left_side.style.maxWidth = '11.5%'
left_side.style.flex = '0 0 calc(11.5% - 0px)'
var content = document.querySelector('.content')
content.style.maxWidth = '88.5%'
content.style.flex = '0 0 calc(88.5% - 0px)'
}
window.onresize = adjust
setTimeout(function () {
@ -22,9 +26,9 @@
setTimeout(function () {
document.querySelector('#myAssets_5_span').click()
setTimeout(function () {
document.querySelector('#myAssets_14_span').click()
document.querySelector('#myAssets_7_span').click()
setTimeout(function () {
document.querySelector('#myAssets_17_span').click()
document.querySelector('#myAssets_10_span').click()
}, 300)
}, 300)
}, 300)


Loading…
Cancel
Save