Modify Accept-Language Header

Force Accept-Language header to include en-US and zh-CN

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
geemaple (Felix)
Installationen heute
0
Installationen gesamt
20
Bewertungen
0 0 0
Version
0.2
Erstellt am
23.09.2024
Letzte Aktualisierung
23.09.2024
Größe
1,24 KB
Lizenz
MIT
Wird angewandt auf
Alle Seiten

# 修改 Accept-Language 头部(英文与中文)

## 描述:
该脚本会修改每个网站请求中的 `Accept-Language` 头部,添加 `en-US`(英文)和 `zh-CN`(简体中文)。优先使用 `en-US`,但也支持 `zh-CN` 作为备用语言。

## 功能:
- 强制网站在支持的情况下显示英文(`en-US`)内容。
- 将简体中文(`zh-CN`)作为第二语言。
- 支持 `XMLHttpRequest` 和 `fetch` 请求。

## 使用方法:
1. 在浏览器中安装 Tampermonkey 扩展。
2. 添加此脚本,以在访问网站时强制语言优先级。

## 示例:
`Accept-Language` 头部设置为:
`en-US,en;q=0.9,zh-CN,zh;q=0.8`,优先使用英文,简体中文为次选。