AnkiWeb
- Rating
- 1 (π 1 Β· π 0)
- Updated
- 2023-05-31
- Anki versions
- 2.1.64~
- Description language
- en
AnkiWeb addon 92595818
Persists specified localStorage data across Anki restarts by saving it to a media file and reloading it on the first reviewed card, with mobile read-only support.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.22 | 2.1.64+ | 2023-05-31 |
Loadingβ¦
Automatically reloads open template-screen or card-preview previews when card templates are updated externally via Anki-Connect; restart may be required.
Persists card template settings across Anki Desktop restarts by saving them to a JSON file and re-injecting them before template scripts run.
Demonstrates sharing data between JavaScript and Python by using mw.web.eval to pass variables, window.localStorage to persist them, and mw.web.evalWithCallback to retrieve JavaScript values.
Deletes all data stored in window.localStorage when prompted with a question, useful for clearing localStorage information, though typically unnecessary.
Exports Anki decks as human-readable, comparable text files split by Note Type, including deck options and media usage information for re-import.
Reads text retrieved from window.localStorage using Windows SAPI through the external balcon.exe command, but does not cover storing that text.
Allows for true persistence of localstorage data after closing and reopening anki, as well as mobile support for reading (but not writing) of the localstorage data.
It works by saving localstorage key/value pairs starting with phrases defined in the addon configuration as __persistentlocalstorage.js in the users media folder, and then calling the script on the first reviewed card to load the values back into localstorage.
This can be used to change card field values functionally permanently through javascript in the card template. It can be used to remember the slide you were on in an embedded powerpoint, show you randomized items with replacement across review sessions, show you the number of times you have clicked a button on the card, etc.
It is also compatible with syncing across Ankihub decks.
To download, see here
If you like this and would like to donate, all funds will be routed to feeding my child and trying not to fail my medical school exams. https://www.paypal.com/donate/?business=JQL7U4PMGHPKS&no_recurring=0&item_name=Thank+you+%21¤cy_code=USD