翻译机

该脚本用于翻译各类常用社交网站为中文,不会经过中间服务器。

< Spätná väzba na 翻译机

Hodnotenie: Dobré - skript funguje

§
Pridaný: 19.07.2024

Threads 规则
{
name: 'threads',
matcher: /https:\/\/www.threads.net/,
options: [
{
name: "帖子",
selector: baseSelector('#barcelona-page-layout > div > div > div:nth-child(2) > div:nth-child(1) > div:nth-child(4) > div > div:nth-child(1) > div > div > div > div > div:nth-child(2) > div:nth-child(3) > div > div:nth-child(1) > span'),
textGetter: baseTextGetter,
textSetter: baseTextSetter,
}
]
},

§
Pridaný: 19.07.2024

reddit修复op帖子无翻译

{
name: 'reddit通用',
matcher: /https:\/\/www.reddit.com\/.*/,
options: [
{
name: '帖子标题',
selector: baseSelector("*[slot=title][id|=post-title]"),
textGetter: baseTextGetter,
textSetter: baseTextSetter,
},
{
name: '帖子内容',
selector: baseSelector("div[slot=text-body]>div>div[id*=-post-rtjson-content]"),
textGetter: baseTextGetter,
textSetter: baseTextSetter,
},
{
name: '评论区',
selector: baseSelector("div[slot=comment]>div[id$=post-rtjson-content]"),
textGetter: baseTextGetter,
textSetter: baseTextSetter,
}
// a[data-click-id=body]:not([class=undefined]),.RichTextJSON-root
]
},

holynnchenAutor
§
Pridaný: 19.07.2024

lgtm,修正了thread相关规则,reddit内容已合并,十分感谢!

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.