Better colors for wordle

fix wordle's colors to be better

  1. // ==UserScript==
  2. // @name Better colors for wordle
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description fix wordle's colors to be better
  6. // @author Candle Eatist
  7. // @match https://www.powerlanguage.co.uk/wordle/
  8. // @icon https://www.google.com/s2/favicons?domain=powerlanguage.co.uk
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. function addGlobalStyle(css) {
  14. var head, style;
  15. head = document.getElementsByTagName('head')[0];
  16. if (!head) { return; }
  17. style = document.createElement('style');
  18. style.type = 'text/css';
  19. style.innerHTML = css;
  20. head.appendChild(style);
  21. }
  22.  
  23. addGlobalStyle(':root { --green: #62c659 !important; --darkendGreen: #50b747 !important; --yellow: #e5c432 !important; --darkendYellow: #d1b123 !important; --color-tone-2: #898989 !important; }');
  24. addGlobalStyle('.nightmode{ --color-tone-2: #777777 !important ; --color-tone-4: #333333 !important ; --color-tone-1: #e9e9e9 !important ;}')
  25.  
  26. //stuff I removed from line 22 --color-tone-2: #cccccc; !important; --color-tone-4: #999999 !important ; --color-tone-1: #eeeeee !important;