Twitter External Translator

Adds external & internal translators to various sites.

Yazar
magicoflolis
Günlük kurulumlar
2
Toplam kurulumlar
7.221
Değerlendirmeler
10 3 2
Versiyon
2.6.1
Oluşturulma
12.02.2021
Güncellenme
30.07.2023
Uyumluluk
Firefox ile uyumluluk Chrome ile uyumluluk Opera ile uyumluluk Safari ile uyumluluk Edge ile uyumluluk
Lisans
GPL-3.0
Geçerli

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.