Patreon Dark Mode

Changes patreons theme into darkmode

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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();

})();