Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helps train play better chess. helps play a bit more blind #5

Open
sl5net opened this issue May 18, 2024 · 0 comments
Open

helps train play better chess. helps play a bit more blind #5

sl5net opened this issue May 18, 2024 · 0 comments

Comments

@sl5net
Copy link

sl5net commented May 18, 2024

https://lichess.org/forum/lichess-feedback/semi-blindfold-chesssuggestion
https://en.wikipedia.org/wiki/Blindfold_chess

javascript:(function(){function replaceClasses(elements,newClass) { elements.forEach((element) => { if (element) { element.classList.remove('black', 'white'); element.classList.add(newClass); } }); } const whiteBishops = document.querySelectorAll('.white.bishop'); const blackBishops = document.querySelectorAll('.black.bishop'); replaceClasses(whiteBishops,'unread'); replaceClasses(blackBishops,'copyable'); const whiteRooks = document.querySelectorAll('.white.rook'); const blackRooks = document.querySelectorAll('.black.rook'); replaceClasses(whiteRooks,'unread'); replaceClasses(blackRooks,'copyable');})();

or

javascript:(function(){const pieces = document.querySelectorAll('.black.rook, .black.bishop, .white.rook, .white.bishop'); pieces.forEach((piece) => { piece.style.opacity = 0.2; });})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant