Improve usability of docs on sass-lang.com

Make documentation page on sass-lang.com more usable by fixing the TOC to the right side of the viewport.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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;}');