Twitch Live Chat Translator (Russian to English)

Automatically translates Russian(cyrillic) messages in Twitch chat to English.

개발자
Phen0n
일일 설치수
0
총 설치수
2
평점
0 0 0
버전
1.2
생성
2025-02-16
갱신
2025-02-16
크기
5.31KB
라이선스
AGPLv3
동작 사이트

ttv-lct

Twitch Live Chat Translator

image

Requirements

  • Tampermonkey browser extension

    Installation

  • Copy the contents of the .js file from this repository

  • Open Tampermonkey -> Create a new script...

  • Paste the copied code

  • File -> Save (or Ctrl+S)

Usage

The script will automatically wait for required elements to load before starting.
Translation and formatting takes place without user input.

Multiple commands are exposed to the console through unsafeWindow:

  • setColor('color')
    • Input value(s): Any CSS color value
    • Default value: #007F00
    • Example usage: setColor('#007F00')
  • setMargins(['left','right'])

    • Input value(s): Any CSS length unit or auto
    • Default value: ['5px', '5px']
    • Example usage: setMargins(['5px','5px'])
  • setStyle('style')

  • setTimer(milliseconds)

    • If the timer goes by without any new messages being detected, reset the chat observer.
    • Input value(s): any positive integer
    • Default value: 20000
    • Example usage: setTimer(20000)

Limitations

  • Only translates cyrillic text

To-Do

  • Support for clips, videos
  • Remove 7TV dependency
  • Optimize API calls for larger workloads
  • Change to officially supported translation service
  • Support for more languages

Changelog

1.2

  • Swapped translation endpoint
  • Added more metadata tags:
    • run-at
    • homepageURL
    • supportURL

1.1

  • Added support for videos
  • Removed 7TV dependency
  • Now resets observed element if no changes are detected in a given time
    • Length customized via setTimer

1.0.1

  • Added @grant values: GM_setValue and GM_getValue.
    • Now saves style values within Tampermonkey
  • Added console commands to change style of translated text
    • Settings persist between sessions

1.0

  • Released