Created
July 19, 2021 06:37
-
-
Save 370417/22b16ac0ed7857e90ab9b106f5450578 to your computer and use it in GitHub Desktop.
Prevents skipping moves in lichess analysis (engine lines)
This file contains 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
/** | |
* Modifies the lichess.org analysis board engine line suggestions. | |
* Instead of jumping to the move that gets clicked, | |
* clicking anywhere on an engine line will play the first move of the line. | |
*/ | |
/** | |
* Prevents clicking on children of the pv container. | |
* This works because clicking on the container itself will automatically play the first move of the pv. | |
*/ | |
div.pv > *:not(:first-child) { | |
pointer-events: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment