FASTEST 2025 Google Translate

Super-fast Google Translate with instant SPA/AJAX support, no hiding

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
insta/@WaterDustLab
日安装量
0
总安装量
2
评分
0 0 0
版本
1.2
创建于
2025-11-03
更新于
2025-11-03
大小
2.9 KB
许可证
暂无
适用于
所有网站

Translate all sites into English upon detection of different languages

🔥Key focuses:
Speed up: Async script loading, lazy init, minimal overhead.
Dynamic content: Use MutationObserver to detect and re-translate new elements instantly (e.g., for single-page apps like React/Vue where content loads via AJAX).
No toolbar hiding—let it show naturally if Google Translate decides to.
2️⃣ Core Optimizations
Faster init: Load script async, init only when ready, use pageLanguage 'auto' for quick detection.
Dynamic translation: MutationObserver watches for DOM changes and triggers re-translation on new content.
SPA/AJAX handling: Observer subtree/childList to catch async-loaded elements; call Google's translate methods on mutations.
Minimal footprint: No extra CSS, no observers for hiding—just for translation triggers.
Still Google Translate: Keeps the fast engine.
Note: Google Translate's API doesn't have a direct "re-translate" method for subsets, so i have simulated by re-initializing or using their internal refresh if available, but optimized to avoid full page reloads.