Spring Doc Index Fixed

fixed spring doc index column

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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);
    
})();