🏠 返回首頁 

Greasy Fork is available in English.

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. (function() {
  12. function GM_addStyle(css) {
  13. const style = document.getElementById("GM_addStyle") || (function() {
  14. const style = document.createElement('style');
  15. style.type = 'text/css';
  16. style.id = "GM_addStyle";
  17. document.head.appendChild(style);
  18. return style;
  19. })();
  20. const sheet = style.sheet;
  21. sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
  22. } GM_addStyle ( `
  23. .root{
  24. --color-background-accent: var(--color-hinted-grey-1);
  25. }
  26. ` );GM_addStyle ( `
  27. .simplebar-scroll-content,.chat-input,.rooms-header{
  28. background: var(--color-hinted-grey-1);
  29. }
  30. ` );
  31. })();