Skip to content

Instantly share code, notes, and snippets.

@370417
Created July 19, 2021 06:37
Show Gist options
  • Save 370417/22b16ac0ed7857e90ab9b106f5450578 to your computer and use it in GitHub Desktop.
Save 370417/22b16ac0ed7857e90ab9b106f5450578 to your computer and use it in GitHub Desktop.
Prevents skipping moves in lichess analysis (engine lines)
/**
* 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