Modify Accept-Language Header

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

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

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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

Tác giả
geemaple (Felix)
Cài đặt hàng ngày
0
Số lần cài đặt
20
Đánh giá
0 0 0
Phiên bản
0.2
Đã tạo
23-09-2024
Đã cập nhật
23-09-2024
Kích thước
1 KB
Giấy phép
MIT
Áp dụng cho
Tất cả trang web

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