Skip to content

Youtube 字幕全自動開關 v0.2.5

Choose a tag to compare

@ahui3c ahui3c released this 23 Aug 14:40
· 8 commits to main since this release

v0.2.5 — 自訂詞彙限本機轉換

繁體中文(預設)

  • 「自訂詞彙替換」現在與「地區用語轉換」一致,必須先選擇「本機轉換」才能使用。
  • 使用 YouTube 翻譯時,自訂替換開關、新增表單與既有規則編輯功能會鎖定。
  • 切換到 YouTube 翻譯不會刪除既有詞庫;再次選擇本機轉換後即可繼續使用。
  • YouTube 翻譯模式不再對字幕套用自訂詞彙替換。
  • 分頁進入背景、沒有 CC、OCR 判斷完成或功能關閉時,會自動解除不再需要的字幕監聽;本機轉換所需的字幕處理不受影響。
  • OpenCC 詞庫只在「本機轉換」實際需要時載入目前 YouTube 分頁,並在載入後驗證轉換器可用;預設 YouTube 翻譯模式不載入。
  • 執行狀態沒有變化時不再重複寫入 chrome.storage.local
  • 修正 YouTube 自動翻譯選單顯示 >> undefined,現在會傳入繁體中文的語言名稱。
  • 畫面內嵌字幕 OCR 改為全新安裝時預設開啟;「簡體 CC 時略過偵測」改為預設關閉。沒有任何 CC 時仍不啟動 OCR。
  • 字幕優先順序整理為「中文繁體字幕、中文字幕、中文簡體字幕、英文字幕、自動產生的英文字幕、其他可翻譯語言字幕」六項;移除很少使用的自動繁中、自動中文及自動簡中規則,其他功能不變。

English

  • Custom word replacements now require Local Conversion, matching the regional terminology feature.
  • The toggle, add form, and existing rule controls are locked while YouTube translation is selected.
  • Existing rules are retained and become available again after switching back to Local Conversion.
  • Custom replacements are no longer applied in YouTube translation mode.
  • Unneeded caption observation now stops in background tabs, without CC tracks, after OCR completes, or when the extension is disabled; monitoring required for local conversion remains available.
  • OpenCC is injected into the current YouTube tab only when Local Conversion needs it, and the converter is verified before use.
  • Unchanged runtime status is no longer written repeatedly to chrome.storage.local.
  • Fixed >> undefined in YouTube's auto-translate menu by supplying the target language display name.
  • Burned-in subtitle OCR is now enabled by default on fresh installations, while “skip detection for Simplified Chinese CC” is disabled by default. OCR still does not start when no CC track exists.
  • Consolidated the caption priority list into six renamed items and removed the rarely used automatic Traditional, generic Chinese, and Simplified Chinese rules.