Skip to content

Instantly share code, notes, and snippets.

@Adriandmen
Last active March 6, 2023 18:16
Show Gist options
  • Save Adriandmen/debf719f4a62a62d7733fb86944b541b to your computer and use it in GitHub Desktop.
Save Adriandmen/debf719f4a62a62d7733fb86944b541b to your computer and use it in GitHub Desktop.
// ==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