您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
调整鸿蒙OS文档的侧边目录的宽度
当前为
// ==UserScript== // @name 鸿蒙文档 侧边目录宽度调整 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 调整鸿蒙OS文档的侧边目录的宽度 // @author Asjun // @match https://developer.harmonyos.com/cn/docs/* // @icon https://www.google.com/s2/favicons?domain=harmonyos.com // @grant none // ==/UserScript== (function() { 'use strict'; setTimeout(function() { setWidth(); }, 2000); })(); function setWidth() { if (document.querySelector("#documentMenu") == undefined) { return; } var width = '244px'; var node = document.querySelector("#auiAnchorTarget > div > app-document-page > div:nth-child(1) > nz-layout > nz-sider.left-sider.ant-layout-sider"); node.style.minWidth = width; node.style.maxWidth = width; node.style.width = width; node = document.querySelector("#documentMenu"); node.style.width =width; }