Skip to content

Comments

Disable browser translation popup on extension HTML page#18

Merged
unknowIfGuestInDream merged 2 commits intomasterfrom
copilot/remove-translation-popup
Feb 12, 2026
Merged

Disable browser translation popup on extension HTML page#18
unknowIfGuestInDream merged 2 commits intomasterfrom
copilot/remove-translation-popup

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Opening diff-viewer.html triggers the browser's "Translate this page?" prompt, which is irrelevant for a dev tool rendering diffs.

  • Add translate="no" on <html> tag (standard HTML attribute)
  • Add <meta name="google" content="notranslate"> (Chrome/Edge-specific suppression)
Original prompt

This section details on the original issue you should resolve

<issue_title>功能优化</issue_title>
<issue_description>打开html会弹出是否翻译的弹窗,这个浏览器功能给关掉</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Add translate="no" attribute and <meta name="google" content="notranslate">
to prevent Chrome/Edge from showing the translation prompt when opening
the extension's HTML page.

Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove translation popup from HTML view Disable browser translation popup on extension HTML page Feb 12, 2026
@unknowIfGuestInDream unknowIfGuestInDream merged commit 18355c9 into master Feb 12, 2026
2 checks passed
@unknowIfGuestInDream unknowIfGuestInDream deleted the copilot/remove-translation-popup branch February 12, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

功能优化

2 participants