YIDA Admin SidePanel Width Fix

宜搭应用管理页面左侧边栏宽度修改

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         YIDA Admin SidePanel Width Fix
// @namespace    https://greatest.deepsurf.us/zh-CN/scripts/459176-yida-admin-sidepanel-width-fix
// @version      0.3
// @description  宜搭应用管理页面左侧边栏宽度修改
// @author       Patchouli_Go_
// @run-at       document-end
// @match        *://cmymzk.aliwork.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=aliwork.com
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_registerMenuCommand
// @grant        GM_addStyle
// @license MIT
// ==/UserScript==

(function() {
    setTimeout( function(){
        var wid1 = document.querySelectorAll("#App > section > section > aside > div")
        if(wid1.length > 0) wid1[0].style.width = "300px";
        var wid2 = document.querySelectorAll("#App > section > section > aside > div > div > ul > div")
        if(wid2.length > 0) wid2[0].style.width = "284px";
        var common = document.getElementById("yida-admin-common");
        common.style.display = "none";
    }, 1000)
})();