text/plain Style Dark Centered

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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