v0.1.4
ZotRead v0.1.4 — fix scope dropdown empty after v0.1.3 prefs hook change
What was wrong
v0.1.3 fixed prefs blank labels by switching the load-hook trigger from <groupbox onload> to a top-of-document <script> block. That worked — labels show — but introduced a new issue: the <script> runs synchronously while the DOM is still being parsed, so by the time registerPrefsScripts calls getElementById('zotero-prefpane-zotread-scope-picker'), the <menulist> element below the script hasn't been parsed yet. Result: scope dropdown rendered as a blank widget with no options.
Fix
registerPrefsScripts now waits for document.readyState === "complete" before any DOM lookup. One short await; matches what zotero-better-notes does in its prefs script.
Note on "API key auto-filled after install"
Re-installing the plugin does NOT reset settings — Zotero/Firefox preserves user_pref() values across plugin uninstall/reinstall. The API key you see was your own paste from a previous install (v0.1, v0.1.1, v0.1.2 or v0.1.3) on that machine, not anything bundled with the xpi. Verified:
prefs.jsinside the xpi hasapiKeyas empty string""- The entire build output and git history contain zero
sk-strings
To wipe a saved key: about:config → search extensions.zotero.zotread.llm.apiKey → right-click → Reset.
Install
Same as before — download zot-read.xpi and re-install via Tools → Add-ons → gear icon → Install Add-on From File….