HN Dark Mode

Simple Dark Mode Stylesheet for HN.

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==
// @name         HN Dark Mode
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Simple Dark Mode Stylesheet for HN.
// @match        https://news.ycombinator.com/*
// @run-at       document-start
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    var style = document.createElement("style");
    style.type = "text/css";
    style.innerHTML = (function EOF(){ /*!<<<EOF
body  { font-family:Verdana, Geneva, sans-serif; font-size:10pt; color:#828282; background-color: #333; }
#hnmain { background-color: #444; }
.admin td   { font-family:Verdana, Geneva, sans-serif; font-size:8.5pt; color:#000000; }
textarea { font-family:monospace; font-size:10pt; background: #777; color: #EEE; }
a:link    { color:#CCCCCC; text-decoration:none; }
a:visited { color:#828282; text-decoration:none; }
.pagetop { font-family:Verdana, Geneva, sans-serif; font-size: 10pt; color:#222222; }
.c00, .c00 a:link { color:#DDDDDD; }
.pagetop a:visited { color:#000000;}
.topsel a:link, .topsel a:visited { color:#ffffff; }
EOF
*/
    }).toString().split("EOF")[2]
    .replace(/\$\{([^}]+)\}/g, function(outer, inner, pos) {
        return this[inner];
    });
    document.getElementsByTagName('head')[0].appendChild(style);
})();