Greasy Fork 还支持 简体中文。

jx-greasyfork-force-light

Ignore GreasyFork behavior of matching browser theme and force light theme.

  1. // ==UserScript==
  2. // @name jx-greasyfork-force-light
  3. // @version 1.0.0
  4. // @namespace https://github.com/JenieX/user-js-next
  5. // @description Ignore GreasyFork behavior of matching browser theme and force light theme.
  6. // @author JenieX
  7. // @match https://greasyfork.org/*
  8. // @run-at document-start
  9. // @noframes
  10. // @compatible chrome Violentmonkey
  11. // @compatible edge Violentmonkey
  12. // @supportURL https://github.com/JenieX/user-js-next/issues
  13. // @homepageURL https://github.com/JenieX/user-js-next/tree/main/greasyfork-force-light
  14. // @icon https://github.com/JenieX/assets/raw/main/icons/greasyfork.png
  15. // @license MIT
  16. // ==/UserScript==
  17.  
  18. function addStyle(css, parent = document.documentElement) {
  19. const style = document.createElement('style');
  20. style.setAttribute('type', 'text/css');
  21. style.textContent = css;
  22. parent.append(style);
  23.  
  24. return style;
  25. }
  26.  
  27. addStyle(':root{--overall-background-color:#f6f6f6!important;--overall-text-color:#000!important;--link-color:#670000!important;--link-visited-color:#a42121!important;--texty-link-visited-color:#333!important;--content-background-color:#fff!important;--content-border-color:#bbb!important;--content-box-shadow-color:#ddd!important;--content-separator-color:#ddd!important;--tab-active-background-color:rgba(0,0,0,.03)!important;--tab-active-box-shadow-color:rgba(0,0,0,.1)!important;--tab-active-top-border-color:#900!important;--inactive-item-background-color:#f5f5f5!important;--code-background-color:#f2e5e5!important;--user-content-background-color-gradient-1:#fcf1f1!important;--user-content-background-color-gradient-2:#fff!important;--user-content-border-left-color:#f2e5e5!important;--list-option-background-color-gradient-1:#fff!important;--list-option-background-color-gradient-2:#eee!important;--notice-background-color:#d9edf7!important;--notice-border-color:#31708f!important;--notice-text-color:#000!important;--alert-background-color:#ffc!important;--alert-border-color:#ffeb3b!important;--alert-text-color:#000!important;--chart-background-color:#dcdcdc!important;--chart-border-color:#dcdcdc!important}');