Skip to content

Releases: soheidon/LLM-Translator

Release list

v0.4.0

Choose a tag to compare

@soheidon soheidon released this 29 Jun 15:10

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#main to [data-llm-chatgpt-container="true"] attribute-based selectors. The translation UI now expands to near-full viewport height on variant A (which lacks id="main").
  • Login button preservation — Instead of hiding #contentful-header entirely, 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 suppressionhtml, 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-header and [class*="h-mkt-header-height"] to prevent the login button from being incorrectly hidden.