TranslateShield
ExtensionTools
Overview
通过 translate="no" 阻止 Chrome 翻译代码块等区域,支持全局与按 URL 匹配的站点规则。
TranslateShield 解决了一个让开发者头疼的问题:Chrome 的自动翻译会把网页里的代码块、命令、变量名一起翻译,导致代码不可用。 本扩展通过给指定元素添加 translate="no" 属性,让 Chrome 跳过这些区域,保持代码原样,同时正常翻译文章正文。 【核心功能】 • 全局选择器:默认保护 code、pre、kbd、samp 以及常见高亮库(hljs / prism / highlight)等区域,可自由增删改。 • URL 站点规则:支持 domain / prefix / glob / regexp 四种匹配方式,可为特定站点追加专属选择器或排除某些全局选择器,并带「测试 URL」即时命中判断。 • 点击选取:在页面上悬停高亮元素,自动生成候选 CSS 选择器(含稳定性评级),一键保存到全局或当前站点。 • Popup 快捷面板:显示当前域名、一键禁用本站、查看生效中的选择器、已保护元素数量。 • SPA 支持:自动处理动态加载的内容,规则变更实时生效。 【隐私】 完全本地运行,不收集任何数据,不发起任何网络请求。配置仅通过 chrome.storage.sync 在你自己的浏览器间同步。
0 out of 5No ratings
Details
- Version0.1.0
- UpdatedJune 27, 2026
- Offered bytutu
- Size94.08KiB
- Languages中文(中国)
- Developer
Email
booktu8@gmail.com - Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
Manage extensions and learn how they're being used in your organization
The developer has disclosed that it will not collect or use your data.
This developer declares that your data is
- Not being sold to third parties, outside of the approved use cases
- Not being used or transferred for purposes that are unrelated to the item's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes