更新 '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,29 +1,33 @@
// ==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/*
// @grant none // @grant none
// ==/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', '')
document.querySelector('.left-side').style.maxWidth = '11.5%' function adjust() {
document.querySelector('.content').style.maxWidth = '88.5%' document.querySelector('.left-side').style.maxWidth = '11.5%'
setTimeout(function(){ document.querySelector('.content').style.maxWidth = '88.5%'
}
window.onresize = adjust
setTimeout(function () {
document.querySelector('#myAssets_3_span').click() document.querySelector('#myAssets_3_span').click()
setTimeout(function(){ setTimeout(function () {
document.querySelector('#myAssets_4_span').click() document.querySelector('#myAssets_4_span').click()
setTimeout(function(){ setTimeout(function () {
document.querySelector('#myAssets_6_span').click() document.querySelector('#myAssets_6_span').click()
setTimeout(function(){ setTimeout(function () {
document.querySelector('#myAssets_12_span').click() document.querySelector('#myAssets_12_span').click()
}, 300) }, 300)
}, 300) }, 300)
}, 300) }, 300)
}, 300) }, 300)
})(); adjust()
})()