您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
fixed spring doc index column
// ==UserScript== // @name Spring Doc Index Fixed // @namespace http://tampermonkey.net/ // @version 0.2 // @description fixed spring doc index column // @author wdzxc // @match https://docs.spring.io/spring/docs* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... var el = document.createElement("style"); el.innerHTML = ".toc{position: fixed;\n" + "width: 500px;\n" + "background-color: #f2f2f2;\n" + "top: 0;\n" + "left: 0;\n" + "height: 100vh;\n" + "overflow: auto;}" + "div.part,.book>.titlepage{ margin-left: 520px;}div.book{max-width:initial;min-width:initial;}"; document.body.appendChild(el); })();