Anki add-on: Kanji Draw Persistence

Saves and restores template settings across Anki Desktop restarts. The problem Anki Desktop creates an off-the-record QWebEngineProfile , which means all web storage (localStorage, cookies, IndexedDB) is wiped every time Anki restarts. Any settings saved by card templates — like stroke width, hint mode, or animation speed — are lost. What this add-on does It intercepts settings saved by the card template via pycmd() , writes them to a small JSON file on disk, and re-injects them into every card before the template scripts run. Your settings persist across restarts without any manual intervention. How it works The card template sends settings via pycmd('kdp:{...}') The add-on saves them to user_files/settings.json On every card render, a small script restores the values into window._ks and localStorage Built for This add-on is the companion to the Kanji Draw shared deck. The deck works without the add-on — settings will simply reset on each restart. Compatibility Anki Desktop 2.1.x (Qt6 & Qt5) Not needed on AnkiDroid or AnkiMobile (those platforms persist localStorage natively) Source code & License github.com/PawMethod/kanji-draw-anki — MIT License

GitHub repository: pawmethod/kanji-draw-anki
Repository description: Interaktives Anki-Template zum Kanji-Lernen mit Strich-für-Strich-Erkennung, Fréchet-basiertem Scoring und deutschen Eselsbrücken.
Languages: HTML, JavaScript, CSS, Python
Topics: anki, flashcards, japanese, kanji, language-learning, stroke-order