• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

tomouchuu/mastodon-translate: Tampermonkey Script to add option to Translate Too ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

tomouchuu/mastodon-translate

开源软件地址(OpenSource Url):

https://github.com/tomouchuu/mastodon-translate

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

Probably very out of date and not maintained as I don't really use mastodon anymore Feel free to fork or PR!


MastodonTranslate

A tampermonkey script to add a Translate Toot option to toots via GoogleTranslate

Install // Setup

You'll first want Tampermonkey/Greasemonkey for your relevant browser then to install this script head to: https://github.com/tomouchuu/mastodon-translate/raw/master/index.user.js and tampermonkey should prompt you to install the script.

Next head to your instance and head to your preferences (/settings/preferences) and there should be an area for the Translation script. If you're happy for the translations to be done via Google then click the checkbox to agree to this and then set the language you want toots to be translated into. Once that's set, click save changes and then head back to your feeds, give the page another refresh to activate the script again (see limitation below).

Limitations

  • Will only work on niu.moe instance Kinda fixed - #2
  • No mobile version as we can't detect due too...
  • Only mastodon web (No Pleroma MastoFE) due to checking for settings page (see this commit)

What it does

Upon clicking the ellipsis (...) you should see an option to translate toot, click this and it will translate the toot via a GoogleTranslate proxy (https://github.com/uchuuio/translate-server || https://translate.uchuu.io) into english by default. To change this to your desired language, head to your mastodon preferences in settings and you should see an option for translate language. Select the language you'd like and then save changes, head back to the feed and refresh the page.

If you haven't yet agreed to using Google Translate it will take you to your preferences page where you can enable this option.

Issues

If you're having issues with the script, please feel free to reach out to me by raising an issue here or messaging me on mastodon at https://niu.moe/@tomo or @tomouchuu on twitter.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap