text/plain Style Dark Centered

Light on dark centered content style for text/plain documents.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @id TextPlainStyleDarkCentered
// @name text/plain Style Dark Centered
// @description Light on dark centered content style for text/plain documents.
// @namespace https://github.com/glebm
// @author Gleb Mazovetskiy <[email protected]>
// @version 1.0.1
// @match *://*/*
// @grant none
// @run-at document-end
// @homepageUrl     https://gist.github.com/c6a76841160d80650c518c9a2d59265d
// @contributionURL https://etherchain.org/account/0x962644db6d8735446c1af84a2c1f16143f780184
// ==/UserScript==

(function() {
    if (document.contentType !== 'text/plain') return;
    const styleNode = document.createElement('style');
    styleNode.textContent = 
`body {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #111;
    color: rgb(212, 212, 212);
    font-size: 15px;
}`;
    document.head.appendChild(styleNode);
}());