YIDA Admin SidePanel Width Fix

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

  1. // ==UserScript==
  2. // @name YIDA Admin SidePanel Width Fix
  3. // @namespace https://greasyfork.org/zh-CN/scripts/459176-yida-admin-sidepanel-width-fix
  4. // @version 0.3
  5. // @description 宜搭应用管理页面左侧边栏宽度修改
  6. // @author Patchouli_Go_
  7. // @run-at document-end
  8. // @match *://cmymzk.aliwork.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=aliwork.com
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // @grant GM_registerMenuCommand
  13. // @grant GM_addStyle
  14. // @license MIT
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. setTimeout( function(){
  19. var wid1 = document.querySelectorAll("#App > section > section > aside > div")
  20. if(wid1.length > 0) wid1[0].style.width = "300px";
  21. var wid2 = document.querySelectorAll("#App > section > section > aside > div > div > ul > div")
  22. if(wid2.length > 0) wid2[0].style.width = "284px";
  23. var common = document.getElementById("yida-admin-common");
  24. common.style.display = "none";
  25. }, 1000)
  26. })();