Inline Comment splits a quote in the compose window when the user types inside it and inserts the typed text with a marker such as [XX]: (initials of the sender identity). Source code: https://git.hassio-muc.de/Oliver_Herb/inline-comment (MPL-2.0). Test steps 1. Install the add-on. The options page opens once after installation; it can be closed. 2. Reply to an HTML email that contains some quoted text (compose in HTML format). 3. Click in the middle of a sentence inside the quote and type a few characters. 4. Expected: the quote is split at the cursor. Between the two parts of the quote there is a new line that starts with the marker [XX]: (XX = initials of the sender identity) in blue, followed by the typed text; the cursor stays after the text. Typing on, also after Enter, adds no further marker. 5. Press Ctrl+Z (twice if needed): the comment disappears and the quote is whole again. 6. Click the "Inline Comment" button in the toolbar of the compose window: the badge changes to "off" and typing inside the quote behaves normally (no split). Click again: the badge shows "on" and the feature works again. 7. Open Add-ons and Themes, Inline Comment, Options. Change the marker template to {name}: and pick another marker color; the preview updates. Go back to the open compose window and type inside the quote: the new marker and color are used without restarting. 8. Plain text: hold Shift while clicking Reply (opens the reply in the other format) or switch the account to plain-text composition. Type inside the quote: the quote is split and the line starts with [XX]: as plain text, without a ">" in front. Permissions - compose: compose.getComposeDetails (sender identity and whether the message is plain text) and compose.onIdentityChanged (update the marker when the sender is changed). Together with "scripting", it is also required for scripting.compose. - scripting: scripting.compose.registerScripts loads the compose script into new compose windows; scripting.executeScript injects it into compose windows that were already open when the add-on was installed or updated. - storage: storage.local holds the settings and the optional per-identity profiles; storage.session holds the on/off state of each open compose window, because the Manifest V3 background script can be terminated at any time. - accountsRead: identities.get reads the name and email address of the sender identity to render the marker (initials, name or email placeholder). The options page uses identities.list (fallback accounts.list) to offer per-identity profiles. The add-on requests no host permissions and makes no network requests. No data is collected or transmitted. Why document.execCommand("insertHTML") is used The comment is inserted with document.execCommand("insertHTML") so that the insertion becomes part of the editor's undo history and the user can undo it with Ctrl+Z. Direct DOM changes would bypass the undo stack. The HTML string passed to insertHTML is never assembled from strings: createCommentNode() in src/lib/marker.js builds the element with createElement, setAttribute, textContent and createTextNode, and the caller serializes it with outerHTML. The marker text and the typed text only ever become text nodes (textContent or createTextNode). The style attribute only contains values from sanitized settings: colors must match /^#[0-9a-f]{6}$/i (sanitizeSettings() in src/lib/settings.js, otherwise the default color is used), and boolean options map to fixed keywords such as "bold" or "italic". The add-on does not assign to innerHTML or outerHTML and does not use insertAdjacentHTML or document.write; test/dom-sinks.test.js in the repository enforces this. Other editor commands used: insertParagraph (lets the editor split the quote like Enter does), insertText, delete and undo. Code - No remote code: all scripts are part of the package, nothing is loaded at runtime. - No minification, no transpiling, no bundler: the package is a plain ZIP of the src/ folder of the repository plus the LICENSE file (scripts/build.sh). Rebuild steps with the exact tool versions: .docs/guides/development.md, section "Reproducible build" (tag v0.2.1). - No third-party libraries in the package. Prettier, ESLint and jsdom are used only as development tools for formatting, linting and tests and are not shipped. Linter: addons-linter reports MANIFEST_PERMISSIONS warnings for "compose" and "accountsRead". These are Thunderbird permissions unknown to the linter; the warnings are expected.