更新 'jumpserver/luna.user.js'
This commit is contained in:
parent
aea85dd6b1
commit
c400b9613a
@ -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()
|
||||||
|
})()
|
||||||
|
Loading…
Reference in New Issue
Block a user