aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleSI.ts
AgeCommit message (Collapse)Author
4 daysCSP hardening: remove inline scriptsOsmium Sorcerer
The next layer after input validaton to achive the paranoid levels of security. Remove all event handlers inside HTML attributes and add them in TS for each element, allowing `script-src 'self'` to be used as a CSP directive. Buttons that passed some value and had a shared function went into a global listener with data-action attribute, while all the individual elements received their own event listener. This is a mess, but my goal was to end up as close as I could to one-to-one translation of how functions were originally attached to elements.
4 daysEliminate innerHTML manipulationOsmium Sorcerer
Construct DOM nodes directly instead of trying to sanitize every input string and dynamically updating HTML. Replace all uses of innerHTML with textContent, replaceChildren, and appendChild. This removes the need to use safeTags and replace newlines, but now requires preserving whitespace via CSS pre-wrap. Every OOC chat line is now placed into its own element instead of simply being appended to the log. This might be worse, and createTextNode is another alternative.
2026-02-07Defer char.ini loading and use direct img src for char iconsDavid Skoland
Instead of eagerly fetching char_icon (with HEAD requests per extension) and char.ini for every character on join, set img.src directly to char_icon.png and defer char.ini loading until actually needed (character selection via handlePV, or first IC message via handleMS). This eliminates thousands of HTTP requests on join for large character lists. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2025-09-28move extension fetch after ASSstonedDiscord
2024-11-20Prettified Code!stonedDiscord
2024-07-12deprecate fastloading FLstonedDiscord
2024-03-07this is no longer the casestonedDiscord
2023-09-08remove loading bar because wiso is a whining about load timesstonedDiscord
2022-09-08Add Sender supportCaleb
2022-08-30A buncha moreCaleb