您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make documentation page on sass-lang.com more usable by fixing the TOC to the right side of the viewport.
当前为
// ==UserScript== // @name Improve usability of docs on sass-lang.com // @namespace http://sass-lang.com/documentation/ // @version 1.0 // @description Make documentation page on sass-lang.com more usable by fixing the TOC to the right side of the viewport. // @author http://github.com/BriceShatzer // @match http://sass-lang.com/documentation/file.SASS_REFERENCE.html // @grant GM_addStyle // ==/UserScript== /* jshint -W097 */ 'use strict'; GM_addStyle('#toc{position: fixed; right: 0;top: 0; overflow-y: scroll; margin-left:0;height: 100%;}'); GM_addStyle('#content{padding-right:'+document.getElementById('toc').scrollWidth+'px;}');