更新 '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==
// @name LUNA辅助扩展
// @namespace https://miaowoo.cc/
// @version 0.1.2
// @version 0.1.3
// @description Jumpserver Web终端 扩展
// @author MiaoWoo
// @match https://jump.miaowoo.cc/luna/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
(function () {
'use strict'
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%'
setTimeout(function(){
}
window.onresize = adjust
setTimeout(function () {
document.querySelector('#myAssets_3_span').click()
setTimeout(function(){
setTimeout(function () {
document.querySelector('#myAssets_4_span').click()
setTimeout(function(){
setTimeout(function () {
document.querySelector('#myAssets_6_span').click()
setTimeout(function(){
setTimeout(function () {
document.querySelector('#myAssets_12_span').click()
}, 300)
}, 300)
}, 300)
}, 300)
})();
adjust()
})()