您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds piece number data to pieces in the chess board
This user script automatically adds numbers to the pieces in chess.com boards, so you can customize your pieces.
Each piece on chess.com has a 2 character class with the team (w or b) and the piece type (p, n, r, b, q, k).
For example, a black knight piece has the class .bn
In addition, all pawns start at the number '3,' so pawns that are promoted can be given their own styles as well.
To style all pieces of a certain type and color, you can do:
chess-board .piece.wp {
background-image: url(/* some url */) !important;
}
To style a specific piece, you can do:
chess-board .piece.bb[piece-number="1"] {
background-image: url(/* another url */) !important;
}