2020-03-29 06:56:55 +00:00
|
|
|
// ==UserScript==
|
|
|
|
// @name LUNA辅助扩展
|
|
|
|
// @namespace https://miaowoo.cc/
|
2020-11-25 04:31:43 +00:00
|
|
|
// @version 0.1.5
|
2020-03-29 06:56:55 +00:00
|
|
|
// @description Jumpserver Web终端 扩展
|
|
|
|
// @author MiaoWoo
|
|
|
|
// @match https://jump.miaowoo.cc/luna/*
|
|
|
|
// @grant none
|
|
|
|
// ==/UserScript==
|
|
|
|
|
2020-11-16 01:49:37 +00:00
|
|
|
(function () {
|
|
|
|
'use strict'
|
2020-07-17 04:11:45 +00:00
|
|
|
var version = document.querySelector('.footer-version')
|
2020-11-16 01:49:37 +00:00
|
|
|
version.innerHTML = version.innerHTML.replace('Version', '')
|
|
|
|
function adjust() {
|
2020-11-25 04:31:43 +00:00
|
|
|
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)'
|
2020-11-16 01:49:37 +00:00
|
|
|
}
|
|
|
|
window.onresize = adjust
|
|
|
|
setTimeout(function () {
|
2020-10-18 08:15:26 +00:00
|
|
|
document.querySelector('#myAssets_3_span').click()
|
2020-11-16 01:49:37 +00:00
|
|
|
setTimeout(function () {
|
2020-11-23 07:16:24 +00:00
|
|
|
document.querySelector('#myAssets_5_span').click()
|
2020-11-16 01:49:37 +00:00
|
|
|
setTimeout(function () {
|
2020-11-25 04:31:43 +00:00
|
|
|
document.querySelector('#myAssets_7_span').click()
|
2020-11-16 01:49:37 +00:00
|
|
|
setTimeout(function () {
|
2020-11-25 04:31:43 +00:00
|
|
|
document.querySelector('#myAssets_10_span').click()
|
2020-10-18 08:15:26 +00:00
|
|
|
}, 300)
|
|
|
|
}, 300)
|
2020-07-17 04:11:45 +00:00
|
|
|
}, 300)
|
|
|
|
}, 300)
|
2020-11-16 01:49:37 +00:00
|
|
|
adjust()
|
|
|
|
})()
|