Twitter外部翻译器

將第三方翻譯添加到推特

目前為 2021-05-03 提交的版本,檢視 最新版本

作者
magicoflolis
評價
0 0 0
版本
0.17
建立日期
2021-02-12
更新日期
2021-05-03
授權條款
未知
腳本執行於

Twitter外部翻译器

*用DeepL README.md翻译 *

在推文和用户简历中增加了一个 "用...翻译 "的按钮。

这是对DeepL Twitter翻译的一个分叉。


稳定版:

托管在这里,禁用测试版!

*点击顶部的安装

Beta:

托管在 GitHub, 禁用稳定版!


特性:

*与TweetDeck一起工作。1 *多个翻译器! *多个翻译器!

  • 翻译推文和用户生物。
  • 可以进行配置。2
翻译员 支持
DeepL Translate ✔️
Yandex Translate 3 ✔️
Bing Microsoft Translator 4 ✔️
Google Translate 4 ✔️
MyMemory ✔️
Translate.com ✔️

路线图

  • 修复沿途的任何错误
  • 增加更多的外部翻译
  • 使配置更容易
  • 一次显示多个翻译者
  • Inline?
  • TweetLonger?

Bugs / Issues

  • "用......翻译 "按钮在引用Tweet对话框中很少出现。

脚注:

1:只出现在一列,不支持用户简历。[↩]((#a1)

2: 重新加载网页。[↩]((#a2)

/**
 * You'll need to edit the config manually for now if you're using this
 * as a user script.
 */
let cfg = {
    /** Supported languages
    * @type {'en'|'zh'|'nl'|'fr'|'de'|'it'|'ja'|'pl'|'pt'|'ru'|'es'}
    * @type {'bg'|'cs'|'da'|'et'|'fi'|'el'|'hu'|'lv'|'lt'|'ro'|'sk'|'sl'|'sv'} */
    lang: ('en'),
    /** Preferred translator, lowercase only!
    * @type {'deepl'|'yandex'|'bing'|'google'|'mymemory'|'translate'} */
    translator: ('deepl'),
    /** Preferred display
    * @type {'text'|'icon'|'text + icon'} */
    display: ('text + icon'),
    iconWidthA: '16', // Twitter
    iconWidthB: '14', // TweetDeck
    debug: false
};

3:Yandex翻译可能默认为俄语。[↩]((#a3)

4: Twitters的内置翻译使用谷歌翻译,TweetDeck使用Bing微软翻译。[↩]((#a4)

###联系人

GitHub

Twitter

Greasy Fork