Patreon Dark Mode

Changes patreons theme into darkmode

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Patreon Dark Mode
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Changes patreons theme into darkmode
// @author       You
// @match        https://*.patreon.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

// Function that changes various css elements in the site to different colors (Background, Text)
    function doThing(){
// Main blocks (containing text) and Side bar
document.documentElement.style.setProperty('--global-bg-base-default', '#000000');
// Main text
document.documentElement.style.setProperty('--global-content-regular-default', 'rgb(207 207 207');
// Main background
document.documentElement.style.setProperty('--global-bg-page-default', '#292a2c');
// Secondary text
document.documentElement.style.setProperty('--global-content-muted-default', 'rgb(212 171 223)');
// Format for adding more elements
// document.documentElement.style.setProperty('css element you want to change', 'color (can be rgb or hex');
}

// Calling the function
doThing();

})();