更新 'jumpserver/luna.user.js'

This commit is contained in:
502647092 2020-11-16 01:49:37 +00:00
parent aea85dd6b1
commit c400b9613a

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name LUNA辅助扩展 // @name LUNA辅助扩展
// @namespace https://miaowoo.cc/ // @namespace https://miaowoo.cc/
// @version 0.1.2 // @version 0.1.3
// @description Jumpserver Web终端 扩展 // @description Jumpserver Web终端 扩展
// @author MiaoWoo // @author MiaoWoo
// @match https://jump.miaowoo.cc/luna/* // @match https://jump.miaowoo.cc/luna/*
@ -9,11 +9,14 @@
// ==/UserScript== // ==/UserScript==
(function () { (function () {
'use strict'; 'use strict'
var version = document.querySelector('.footer-version') var version = document.querySelector('.footer-version')
version.innerHTML = version.innerHTML.replace('Version', '') version.innerHTML = version.innerHTML.replace('Version', '')
function adjust() {
document.querySelector('.left-side').style.maxWidth = '11.5%' document.querySelector('.left-side').style.maxWidth = '11.5%'
document.querySelector('.content').style.maxWidth = '88.5%' document.querySelector('.content').style.maxWidth = '88.5%'
}
window.onresize = adjust
setTimeout(function () { setTimeout(function () {
document.querySelector('#myAssets_3_span').click() document.querySelector('#myAssets_3_span').click()
setTimeout(function () { setTimeout(function () {
@ -26,4 +29,5 @@
}, 300) }, 300)
}, 300) }, 300)
}, 300) }, 300)
})(); adjust()
})()