Twitter External Translator

Adds external & internal translators to various sites.

2023-07-30 일자. 최신 버전을 확인하세요.

개발자
magicoflolis
평점
0 0 0
버전
2.6.0
생성
2021-02-12
갱신
2023-07-30
호환성
Firefox와 호환됨. Chrome와 호환됨. Opera와 호환됨. Safari와 호환됨. Edge와 호환됨.
라이선스
GPL-3.0
동작 사이트

Twitter External Translator

Adds "Translate with ..." to Tweet and User Bio on various sites. This originally was a fork of DeepL Twitter translation


Version Link Alternative Note
Stable Greasy Fork (GitHub) Install [Bug] Duplicate "Translate with ..." in Direct Messages (sometimes)

Preview
Menu Preview

Changelog

(GitHub) Full Changelog

Features

The menu and CSS have been compressed to reduce file size. Comments can be found under src/main.js on GitHub.

  • Support for External & Internal Translators!
  • Multi language Config menu!
  • Multi language Translator support!
  • Colors and themes can be customized.
  • Automatically match websites color, theme and language.
  • Supports mobile Twitter
  • Supports TwitLonger
  • Supports TweetDeck
  • Supports every Nitter
  • Support for multiple Bios / Tweets on websites!
  • Support for Twitter hover cards.
  • Support for Twitter & TweetDeck direct messages.
  • Works while logged out!
  • "Restore to Defaults" button.
  • document.location.search commands:

Supported Commands:

Using commands is optional.

  • "tetopen" -- Will force open config menu on page load.
  • "tetrestore" -- Will restore config to defaults.
  • "tetdebug" -- Force enable scripts console.log
https://<site>/?<command>

Examples:

Be sure to remove command(s) from url afterwards!

// Will force open config menu on page load.
https://twitter.com/messages/?tetopen

// Can be chanined
https://twitter.com/?tetrestore&tetopen&tetdebug

Supported

Translator External Website Internal
Bing Microsoft Translator link UNTESTED
DeepL Translate link
Google Translate link
LibreTranslate link
Lingva Translate link
MyMemory link
Translate.com link UNTESTED
Yandex Translate link UNTESTED

Documentation

FAQ:

While logged out, UserScript does not work on homepage?

  • UserScript does not run on login / sign up page, example: https://twitter.com/.
  • In addition, UserScript will search document.cookie for "twid" on Twitter and TweetDeck to determine if the user is logged in / out.

On mobile, how do you open the config menu?

  • "Menu" button is disabled / hidden on mobile, you can add '?tetopen' at the end of the url to force open config menu.
  • Be sure to close the menu to save your changes and remove '?tetopen' from the url to prevent menu from reopening.

Where does the UserScript store my API key?

  • API keys are storing in the webpages localStorage (localStorage.getItem("TETConfig")) and UserScripts storage.
  • NOTE: API keys are stored in plain text and not protected by any encryption!

Bugs / Issues

  • Duplicate "Translate with ..." in Direct Messages (sometimes)
  • Auto Theme + Auto Color may not work on Chromium based browsers.
  • [Translators] Azure Cognitive Services is not implemented.

Footnotes:

  • [ Translator ] Twitters built-in translation uses Google Translate, TweetDeck uses Bing Microsoft Translator.
  • [ Translator ] Yandex Translate may default to Russian. YandexHelp

Source Code

https://github.com/magicoflolis/twitter-translator

Contacts

Roadmap

  • Fix any bugs along the way.
  • Show multiple translators at once.
  • Support more translators.