straybone / Witchculttranslation Dark Mode

// ==UserScript==
// @name         Witchculttranslation Dark Mode
// @name:en      Witch cult translations Dark Mode
// @namespace
// @version      1.2
// @description  Dark mode for / Witch cult translations. Also hides the white twitter feed, so make sure to disable it if you want to access it. 
// @author       straybone
// @license MIT
// @match*
// @grant        none
// ==/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;

addGlobalStyle('.site-header, .mid-header, .social-icon, .pf-content {background-color:#131313;}');
addGlobalStyle('h1, h2, h3, h4, h5, h6, .comment-content p, .comment-respond p, .pf-content p, a, a:hover, a:focus, a:active, .main-navigation ul li a, .site-description, .site-branding .site-title a, nav i, #secondary .widget ul li a,.nav-links .nav-previous a, .nav-links .nav-next a, .single-post article .entry-title, .entry-content p, .comment-author.vcard{ color:#d3d3d3; }');
addGlobalStyle('.main-navigation ul ul, #primary article, .comments-area {background-color:#131313;}');
addGlobalStyle('#primary article {border: 1px solid black;}');
addGlobalStyle('.cat-links a, .comments-link a, .tags-links a, .site-branding div, .tags-links a:hover, .comments-area .comment-body .comment-metadata time, .widget_categories ul li a::after, .widget_archive ul li a::after, .author-header, .entry-meta a, .cat-links, .tags-links, .entry-meta, .entry-meta a:hover, a.readmore:hover { color:#d3d3d3; }');
addGlobalStyle('body.custom-background{background-image: none !important; background-color:#131313;}');
addGlobalStyle('.timeline-Widget, do-etfw-2, .SandboxRoot, iframe#twitter-widget-0, iframe, section#do-etfw-2{ display:none !important; }');