Enhanced interactive studies in Lichess.
This script adds a new dropdown menu to the Lichess top bar when entering in a Study. This menu has two options:
Force Preview mode: Automatically enters preview mode, even when you complete a chapter and click the "Next chapter" button.Show chapters in random order: In preview mode, the chapters are loaded in random order. When all the chapters have been completed, a "Repeat" button is displayed to shuffle the chapters and start again.Note: To use the "Preview" mode, the "Analysis mode" option has to be set to "Interactive lesson" in all the Study chapters.