mirror of
https://github.com/fmz200/wool_scripts.git
synced 2026-05-15 16:29:57 +08:00
update X网页版去广告-增加翻译按钮
This commit is contained in:
@ -33,7 +33,7 @@ try {
|
||||
|
||||
// 2. 修改 legacy 字段中的语种
|
||||
// 提示:如果你的推文是中文,将其改为 "en" 才会触发浏览器的翻译按钮显示
|
||||
if (tweetData.legacy) {
|
||||
if (tweetData.legacy?.lang !== "zh") {
|
||||
tweetData.legacy.lang = "en";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user