Nova Hill Obsidian

Makes the Nova-Hill theme extra dark so its easy on your eyes.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Nova Hill Obsidian
// @namespace     https://nova-hill.com/
// @version      1.5
// @description  Makes the Nova-Hill theme extra dark so its easy on your eyes.
// @author       fajay
// @match        https://nova-hill.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.body.style.fontFamily = 'Montserrat, sans-serif';
    document.body.style.fontWeight = 'bold';
    document.body.style.backgroundColor = '#0b0b0b';
    document.body.style.color = '#ffffff';

    let elements = document.querySelectorAll('*');
    elements.forEach(el => {
        el.style.backgroundColor = '#0b0b0b';
        el.style.color = '#ffffff';
        el.style.fontFamily = 'Montserrat, sans-serif';
        el.style.fontWeight = 'bold';
    });

    let buttons = document.querySelectorAll('button');
    buttons.forEach(btn => {
        btn.style.background = 'linear-gradient(0deg, #151416 0%, #474747 100%)';
        btn.style.color = '#ffffff';
    });

    const iconReplacer = (iconClass, iconName) => {
        let iconElements = document.querySelectorAll(`.${iconClass}`);
        iconElements.forEach(icon => {
            icon.classList.add(iconName);
            icon.style.fontSize = '20px';
            icon.style.background = 'none';
            icon.style.border = 'none';
            icon.style.display = 'inline-block';
            icon.style.verticalAlign = 'middle';
        });
    };

    iconReplacer('bucks-icon', 'icon-bucks');
    iconReplacer('bits-icon', 'icon-bits');
    iconReplacer('messages-icon', 'icon-messages');
    iconReplacer('friends-icon', 'icon-friends');
    iconReplacer('candy-icon', 'icon-candy');
    iconReplacer('special-e-icon', 'icon-special');
    iconReplacer('special-icon', 'icon-special2');
    iconReplacer('arrow-down', 'icon-arrow-down');
})();