Skip to content

ShellWen/fix-immersive-translate-github-reply

Repository files navigation

Fix Immersive Translate GitHub Reply

沉浸式翻译是一个广泛使用的浏览器插件/油猴脚本。它可以帮助用户在浏览网页时快速翻译页面上的文本。

但在 GitHub 上,沉浸式翻译生成的翻译文本,会在使用 GitHub 的引用回复功能时,被带入回复内容中。这样会导致回复内容中出现本不应该出现的翻译文本,造成困惑。

这个项目的目的是修复这个问题。它会在点击引用回复的时候,自动检测并移除回复内容中的翻译文本。

同时支持「未选中内容时点击引用回复」和「选中包括翻译文本的内容时点击引用回复」两种情况下的处理。

Immersive Translate is a widely used browser extension / grease monkey userscript. It helps users quickly translate text on a page while browsing the web.

However, on GitHub, the translated text generated by Immersive Translate is carried over into the content of replies when using GitHub's quote reply feature. This causes translated text to appear in replies that shouldn't be there, causing confusion.

This project aims to fix that. This project aims to fix this problem by automatically detecting and removing translated text from replies when you click Quote Reply.

It also supports the two cases of "clicking quote reply when no content is selected" and "clicking quote reply when content including translated text is selected".

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published