Greasy Fork is available in English.

Twitter külső fordító

Hozzáadja a 3. féltől származó fordítókat a Twitterhez

Fejlesztő
magicoflolis
Napi telepítések
2
Telepítések száma
7 217
Értékelések
10 3 2
Verzió
2.6.1
Létrehozva
2021.02.12.
Frissítve
2023.07.30.
Kompatibilitás
Kompatibilis Firefox böngészővel Kompatibilis Chrome böngészővel Kompatibilis Opera böngészővel Kompatibilis Safari böngészővel Kompatibilis Edge böngészővel
Licensz
GPL-3.0
Érvényes

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.