Greasy Fork镜像 支持简体中文。

Patreon Dark Mode

Changes patreons theme into darkmode

  1. // ==UserScript==
  2. // @name Patreon Dark Mode
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Changes patreons theme into darkmode
  6. // @author You
  7. // @match https://*.patreon.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // Function that changes various css elements in the site to different colors (Background, Text)
  17. function doThing(){
  18. // Main blocks (containing text) and Side bar
  19. document.documentElement.style.setProperty('--global-bg-base-default', '#000000');
  20. // Main text
  21. document.documentElement.style.setProperty('--global-content-regular-default', 'rgb(207 207 207');
  22. // Main background
  23. document.documentElement.style.setProperty('--global-bg-page-default', '#292a2c');
  24. // Secondary text
  25. document.documentElement.style.setProperty('--global-content-muted-default', 'rgb(212 171 223)');
  26. // Format for adding more elements
  27. // document.documentElement.style.setProperty('css element you want to change', 'color (can be rgb or hex');
  28. }
  29.  
  30. // Calling the function
  31. doThing();
  32.  
  33. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址