強制所有 YouTube 影片以原始語言音訊播放,而不是 AI 配音的語言。適用於一般影片和 Shorts。可針對單一影片手動關閉。
這裡顯示腳本的所有版本。 只顯示彼此間有代碼差異的版本。
oops
Updated player selector on mobile. Mobile shorts seems to be not selected as YouTube does not provide audio track information there.
Fix initial load issues especially with iframes.
Fixed a few very minor bugs.
Added support for the mobile YouTube site (m.youtube.com). Added a fallback mechanism in case the script is unable to fetch the YouTube API through player update events. Updated console logging to show both the dub language and the original language.
YouTube seems to be automatically renaming the objects inside audio tracks to my surprise. Updated the script to be slightly more object name agnostic.