您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sticky Microsoft Documents right sidebar TOC block and click show more default
当前为
// ==UserScript== // @name ScriptsForMsDocToc // @namespace mailto:[email protected] // @version 0.5.0 // @license MIT // @description Sticky Microsoft Documents right sidebar TOC block and click show more default // @description:zh 固定微软文档右侧的目录栏 // @author fish-404 // @match *://docs.microsoft.com/* // @grant none // ==/UserScript== (function() { 'use strict'; try { document.getElementById("affixed-right-container").setAttribute("style", "position: sticky; top: 3vh"); document.getElementById("right-rail-in-this-article-list").setAttribute("style", "overflow: auto; max-height: 70vh;"); document.querySelector("button[data-bi-name='show-more-btn']").click(); document.querySelector('#right-rail-in-this-article-list .is-expanded a').setAttribute("style", "outline: 0"); // remove dash border } catch {} // not all page has right sidebar TOC block })();