真白萌导航纯黑背景

将导航背景颜色替换为纯黑

// ==UserScript==
// @name           真白萌导航纯黑背景
// @namespace sqliuchang
// @version        0.3
// @author         sqliuchang
// @description    将导航背景颜色替换为纯黑
// @license MIT
// @match        *://masiro.me/*
// @match        *://*.masiro.me/*
// @grant        none

// ==/UserScript==

(function() {
    'use strict';
    function add_css_head(str) {
        var style = document.createElement("style");
        // style.type = "text/css";
        style.innerHTML = str;
        document.getElementsByTagName("HEAD").item(0).appendChild(style);
    }
    function add_css_style(str) {
        var style = document.createElement("style");
        // style.type = "text/css";
        style.innerHTML = str;
        document.getElementById('pjax-container').appendChild(style);
    }
    add_css_head(":root{--discord-background-primary:black !important; --discord-background-mobile-primary:black !important; }");
    add_css_style(".main-header, .main-sidebar, .fix-nav{background-color:black !important; box-shadow: none !important; } .main-header .logo, .main-header .navbar{box-shadow:none !important; }");
})();