Handled Character Switching: Modified the script to detect when the game's WebSocket connection closes (like during logout/character switch). When this happens, it now automatically clears all tracked loot data, player tabs, and resets the active player state using the LootTrackerWSClosed event.
Fixed CSV Export: Repaired the CSV export function with correct syntax, added a header row, and included basic quoting for item names.
Refactored UI/CSS: Moved inline styles into a dedicated CSS block within the script for better organization and easier modification.
Fixed Tooltip Cutoff: Removed the overflow: hidden; style from the main overlay container to prevent tooltips on the header buttons from being cut off.
Added Persistence: Made the open/closed state of the collapsible loot list section save to localStorage.
Prepared for Steam Version: Verified that the WebSocket URL check and player name selector were compatible with the Steam/Electron version, and confirmed it could be loaded via the game's built-in Extension Manager.