Releases: soheidon/LLM-Translator
Releases · soheidon/LLM-Translator
Release list
v0.4.0
Changes
ChatGPT Translate Tab: Multi-Variant DOM Support
The ChatGPT Translate tab now automatically adapts to both page structure variants returned by ChatGPT (marketing LP and app/login), displaying the translation form correctly at full height on either variant.
- Attribute-based CSS selectors — Changed from
main#mainto[data-llm-chatgpt-container="true"]attribute-based selectors. The translation UI now expands to near-full viewport height on variant A (which lacksid="main"). - Login button preservation — Instead of hiding
#contentful-headerentirely, it is reshaped into a slim 44px bar that hides only marketing elements (nav, logo, signup) while keeping the login button accessible on variant A. - Enhanced CTA hiding — CTAs such as "ChatGPT で翻訳を開始する" and "Try now" are now detected and hidden on variant A.
- Page scroll suppression —
html, body { overflow: hidden }eliminates the page-level scrollbar, keeping the translation UI contained within the viewport. - Scroll position reset — Scroll position is reset after layout markers are applied, preventing the translate form from shifting off-screen.
Other
- LP section hiding variant support — Resolved the conflict between
#contentful-headerand[class*="h-mkt-header-height"]to prevent the login button from being incorrectly hidden.