dkitle - 字幕同步

將 YouTube/Bilibili 視頻字幕同步到 dkitle 桌面置頂視窗

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
无名氏(雲水)
今日安裝
2
安裝總數
4
評價
0 0 0
版本
1.3.0
建立日期
2026-03-08
更新日期
2026-03-09
尺寸
31.2 KB
授權條款
MIT
腳本執行於

dkitle

Sync video subtitles from your browser to an always-on-top desktop overlay window.

Supported Sites: YouTube, Bilibili

Supported Platforms: Windows, Linux (X11/Wayland), macOS

Screenshots

Main Window Chrome Extension
YouTube Subtitles Bilibili Video Bilibili Subtitles

Usage

1. Start the Desktop App

Download the latest release from GitHub Releases, or build from source (see below).

Once started, the app will:

  • Open a WebSocket server at ws://localhost:9877/ws
  • Show a manager window listing all subtitle sources

2. Install the Userscript

  1. Install Tampermonkey or Violentmonkey in your browser
  2. Click here to install dkitle.user.js
  3. Confirm the installation in your userscript manager

Works across all browsers (Chrome, Firefox, Edge, Safari) with no store review required.

3. Use

  1. Make sure dkitle-app is running
  2. Open a YouTube or Bilibili video with subtitles enabled
  3. Subtitles will automatically sync to the desktop overlay window
  4. The subtitle window is freely resizable — font size adapts automatically to the window dimensions

Window Manager Configuration (Linux)

Window Identifiers

Window app_id (Wayland) Description
Manager window org.eu.ywxt.dkitle Main window, lists subtitle sources
Subtitle window org.eu.ywxt.dkitle.subtitle Always-on-top subtitle overlay

Wayland Tiling Window Managers

On Wayland tiling window managers (e.g., Sway, Hyprland), the subtitle window will by default only appear on the current workspace and may be tiled. Use the app_id org.eu.ywxt.dkitle.subtitle to add window rules for floating + sticky.

Sway (~/.config/sway/config):

for_window [app_id="org.eu.ywxt.dkitle.subtitle"] floating enable, sticky enable

Hyprland (~/.config/hypr/hyprland.conf):

windowrulev2 = float, class:^(org\.eu\.ywxt\.dkitle\.subtitle)$
windowrulev2 = pin, class:^(org\.eu\.ywxt\.dkitle\.subtitle)$

i3 (X11) (~/.config/i3/config):

for_window [class="org.eu.ywxt.dkitle.subtitle"] floating enable, sticky enable

For other window managers, refer to your WM's documentation and use app_id (Wayland) or WM_CLASS (X11) to match the subtitle window org.eu.ywxt.dkitle.subtitle, then set it to floating + sticky/pin.