Modify Accept-Language Header

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

As of 2024-09-23. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey 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 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.

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

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

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!)

نووسەر
geemaple (Felix)
Ratings
0 0 0
وەشان
0.2
Created
2024-09-23
Updated
2024-09-23
Size
1.24 KB
مۆڵەت
MIT
Applies to
هەموو سایتەکان

# 修改 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`,优先使用英文,简体中文为次选。