Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
登录
Language per Site 预览

Language per Site 作者: Petr Sedlacek

Choose which languages each website gets. Overrides the Accept-Language header, navigator.language(s) in pages, frames and workers, and the JavaScript Intl locale. Supports *.domain wildcards and regular expressions.

0(0 条评价)0(0 条评价)
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
Cover image with popup screenshotSettings pageEdit as text on the Settings page
关于此扩展
Firefox sends every website the same preferred languages. Language per Site lets you choose them per site: German for German shops, English for documentation, your own language everywhere else.

<b>How it works</b>
Rules are one line each: a site pattern and a comma-separated list of languages.
<code>example.com = en-GB, en, de</code> only this exact host
<code>.example.com = de, en</code> the domain and all its subdomains
<code>/^shop\d+.example.com$/ = fr</code> a regular expression on the hostname
<code>
= en-US, en</code> every other site
<code>login.example.com = default</code> no override, use Firefox's own setting

The most specific rule wins: exact host, then regular expressions (first match from the top), then the longest *.domain, then *.

<b>Toolbar popup</b>
<ul><li>See which languages the current tab gets, and which rule gives them.</li><li>Save a rule for the current site at any level: the exact host, the whole domain, or every site.</li><li>Edit, delete (with Undo) and drag to reorder all your rules.</li></ul>
<b>Settings page</b>
<ul><li>The same rule list, plus a tester: type a URL to see which rule matches and the exact Accept-Language header it sends.</li><li>Edit as text for bulk changes and comments, with per-line validation.</li></ul>
<b>What gets overridden</b>
Not just the Accept-Language header. Sites can also read your languages from JavaScript, so the extension makes all of these agree:
<ul><li>The Accept-Language header on page loads, frames, images, scripts, fetch/XHR, WebSocket and worker requests. A header that a page sets itself on fetch/XHR is left alone.</li><li>navigator.language and navigator.languages in pages, iframes (including about:blank ones) and popups.</li><li>Dedicated, shared and service workers, including workers created from blob: and data: URLs.</li><li>The JavaScript default locale: Intl.DateTimeFormat, Intl.NumberFormat and the other Intl formatters, toLocaleString() on dates and numbers, localeCompare() and more. You can turn this part off.</li></ul>
<b>Limitations</b>
<ul><li>Things Firefox draws itself (date pickers, form validation messages, the PDF viewer) stay in Firefox's UI language. Extensions can't change them.</li><li>Changes apply to pages loaded after saving. Reload open tabs to update them.</li></ul>
<b>Privacy</b>
The extension collects nothing and makes no network requests of its own. Your rules are stored locally in Firefox. The source code is on GitHub.
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 访问您在所有网站的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 复制附加组件 ID
版本
1.0.0
大小
35.74 KB
上次更新
8 天前 (2026年11月21日)
相关分类
  • 语言工具
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。