Last active
March 27, 2026 03:49
-
-
Save hoshinolina/d2a8170309b655a6d7ffae79f6d93b5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name YT Chat Show original language | |
| // @namespace http://github.com/hoshinolina | |
| // @version 2026-03-27 | |
| // @description Show Translated + Original message in YT chat | |
| // @author Hoshino Lina | |
| // @match https://*.youtube.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function GM_addStyle(css) { | |
| const style = document.getElementById("GM_addStyle1234") || (function() { | |
| const style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| style.id = "GM_addStyle1234"; | |
| document.head.appendChild(style); | |
| return style; | |
| })(); | |
| const sheet = style.sheet; | |
| sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length); | |
| } | |
| GM_addStyle("#hover-message.yt-live-chat-text-message-renderer {margin-left: 0.5em; padding: 0 2px; border: 1px solid #333; color: #555; border-radius: 3px; display: inline;}"); | |
| GM_addStyle("html[dark] #hover-message.yt-live-chat-text-message-renderer {color: #aaa;}"); | |
| GM_addStyle("yt-live-chat-text-message-renderer[has-hover-message]:hover #message-container.yt-live-chat-text-message-renderer {display: inline;}"); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment