YIDA Admin SidePanel Width Fix

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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)
})();