GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Vikindor/twitch-show-stream-language: Userscript for browsers that displays stream’s language like [EN] / [JA] / etc.

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
media
media
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Twitch_-_Show_Stream_Language.js
Twitch_-_Show_Stream_Language.js
 
 

Repository files navigation

Twitch - Show Stream Language

Userscript for browsers that displays stream’s language code like [EN] / [JA] / [ES] right in the Twitch UI. Works on channel preview cards in directories and on the channel page header itself. Two visual modes are available: a top‑right badge on the card or a right‑aligned suffix next to the streamer's username.


💥 New: This userscript is also available as part of Twitch Enhancer, a browser extension for Chrome and Firefox that combines it with other Twitch quality-of-life improvements.
Learn more: Twitch Enhancer


✨ Features

  • Detects and shows the stream language (ISO‑like two‑letter codes and common locale variants).
  • Two visual modes:
    • suffix — small label aligned to the right of the streamer's username.
    • badge — compact pill in the top‑right corner of a preview card.
  • Works across SPA navigations (React router) and on initial load.
  • Annotates both directory/browse cards and the channel header.
  • Has several fallbacks when language cannot be determined from GQL.

🖼 Screenshots

Suffixes next to streamers’ usernames

Channels page — Suffix screenshot

Badges on channel preview cards

Channels page — Badge screenshot

Suffix or badge on the stream page

Suffix and badge variants screenshot

🚀 Installation

  1. Install Tampermonkey (or another userscript manager).
  2. Install the script from one of the mirrors:
    • GreasyFork
    • OpenUserJS
    • Or install directly from this repository.

🔧 Configuration

Open the script in your userscript manager and change the value of:

const VISUAL_MODE = 'suffix';

suffix - adds label next to the streamer's username.

badge - adds small pill in the top-right corner of the preview card.

⚙ How it works

The script passively listens to Twitch’s SPA updates and XHR GQL responses, extracts language info from fields like broadcasterLanguage, language, and content tags, and maps localized tag names to ISO‑like codes when needed. It then annotates relevant DOM nodes as they appear.

❗ Note

In rare cases, you may see a [??] suffix — this happens when the stream has no language set in GQL and no recognizable custom tags to infer it from. This is a known issue and I’m exploring possible ways to improve detection; it may be resolved in future updates.

About

Userscript for browsers that displays stream’s language like [EN] / [JA] / etc.

Topics

greasyforklanguageopenuserjsreacttampermonkeytwitchuserscriptviolentmonkey

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.