您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
fix wordle's colors to be better
- // ==UserScript==
- // @name Better colors for wordle
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description fix wordle's colors to be better
- // @author Candle Eatist
- // @match https://www.powerlanguage.co.uk/wordle/
- // @icon https://www.google.com/s2/favicons?domain=powerlanguage.co.uk
- // @grant none
- // @license MIT
- // ==/UserScript==
- function addGlobalStyle(css) {
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = css;
- head.appendChild(style);
- }
- addGlobalStyle(':root { --green: #62c659 !important; --darkendGreen: #50b747 !important; --yellow: #e5c432 !important; --darkendYellow: #d1b123 !important; --color-tone-2: #898989 !important; }');
- addGlobalStyle('.nightmode{ --color-tone-2: #777777 !important ; --color-tone-4: #333333 !important ; --color-tone-1: #e9e9e9 !important ;}')
- //stuff I removed from line 22 --color-tone-2: #cccccc; !important; --color-tone-4: #999999 !important ; --color-tone-1: #eeeeee !important;