Twitch Better Dark Mode

Turns black into gray

  1. // ==UserScript==
  2. // @name Twitch Better Dark Mode
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.1
  5. // @description Turns black into gray
  6. // @author Bum
  7. // @require http://code.jquery.com/jquery-3.4.1.min.js
  8. // @grant GM_addStyle
  9. // @match https://www.twitch.tv/*
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. function GM_addStyle(css) {
  14. const style = document.getElementById("GM_addStyle") || (function() {
  15. const style = document.createElement('style');
  16. style.type = 'text/css';
  17. style.id = "GM_addStyle";
  18. document.head.appendChild(style);
  19. return style;
  20. })();
  21. const sheet = style.sheet;
  22. sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
  23. } GM_addStyle ( `
  24. .root{
  25. --color-background-accent: var(--color-hinted-grey-1);
  26. }
  27. ` );GM_addStyle ( `
  28. .simplebar-scroll-content,.chat-input,.rooms-header{
  29. background: var(--color-hinted-grey-1);
  30. }
  31. ` );
  32. })();

QingJ © 2025

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