matejos / Medium.com - dark mode

// ==UserScript==
// @name     Medium.com - dark mode
// @author   matejos
// @version  0.9
// @include  https://*medium.com/*
// @license  MIT
// @updateURL https://openuserjs.org/meta/matejos/Medium.com_-_dark_mode.meta.js
// @downloadURL https://openuserjs.org/install/matejos/Medium.com_-_dark_mode.user.js
// ==/UserScript==
function addGlobalStyle(css) {
  var head, style;
  head = document.getElementsByTagName('head')[0];
  if (!head) {
    return;
  }
  style = document.createElement('style');
  style.type = 'text/css';
  style.innerHTML = css;
  head.appendChild(style);
}
addGlobalStyle('.pw-author, .pw-post-title, .pw-post-body-paragraph, .pw-multi-vote-icon, .pw-multi-vote-count { color: rgb(240, 240, 240); }');
addGlobalStyle('.r, .mk, .mq, .tk, .mt path, .um path { fill: rgb(240, 240, 240) !important; }');
addGlobalStyle('.c, .jg { background-color: rgb(25, 25, 25); }');
addGlobalStyle('.nm, .ru, .kw, .rw, .qn { background-color: rgb(35, 35, 35); }');