This is a third-party script/app and is not created by the WaniKani team. By using this, you understand that it can stop working at any time or be discontinued indefinitely.
This UserScript to meant to keep [details]
or <details>
tags open while editing; a big problem for me while editing a Wiki, or an extra long thread, with a lot of collapses - opened and when edited, they close themselves.
The state is saved based on “title” / “summary”. Although duplicated titles also work, I don’t really recommend that.
That I can create this in the first place, is thanks to IME2Furigana.
Technical, and code reusability
The code is made from multiple files’ TypeScript, bundled together with esbuild (and using packages from NPM is also possible).
Coindentally, Vite comes together with esbuild, which can become useful when I need to test something on a real
localhost
website first.The code is automatically built to JavaScript when commited to Github, so the latest code is here. Somehow, even after being built / bundled, the code is still very readable!
![]()
Because of the multiple files’ TypeScript thing, a portion of IME2Furigana code is here. I don’t really know how
window.require()
of a Discourse Forum works, however; just copied everything.