Last active
March 6, 2023 18:16
-
-
Save Adriandmen/debf719f4a62a62d7733fb86944b541b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Chess.com Style Customizer | |
// @namespace https://gist.github.com/Adriandmen/ | |
// @version 1.0.1 | |
// @description Simple style injection script. | |
// @author Adnan_2 | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=githubusercontent.com | |
// @grant none | |
// @match https://www.chess.com/* | |
// @downloadURL https://gist.githubusercontent.com/Adriandmen/debf719f4a62a62d7733fb86944b541b/raw/chess-com-styling.js | |
// @updateURL https://gist.githubusercontent.com/Adriandmen/debf719f4a62a62d7733fb86944b541b/raw/chess-com-styling.js | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
let head = document.head.innerHTML; | |
document.head.innerHTML = head + ` | |
<style> | |
:root { | |
--custom-dark-username-color: #000000; | |
} | |
.board-layout-player .user-username-white, | |
.board-layout-player .user-tagline-white, | |
.board-layout-player .user-username-component { | |
color: var(--custom-dark-username-color) !important; | |
} | |
</style> | |
` | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment