Skip to content

Browser Extensions Integration

umlx5h edited this page Feb 20, 2025 · 16 revisions

LLPlayer can work with language-specific browser extensions such as Yomitan and 10ten via the clipboard.

I plan to incorporate these into the player in the future (issue), but here is a way to send subtitles text to the browser via the clipboard.

It cannot be used inside the video, but can be used in an external browser.

Steps

1. (Browser) Install "Clipboard Inserter" extesion

An extension is needed to send subtitles text to the browser via the clipboard.

Chromium
Firefox

For Chromium, Please set Allow access to file URLs to enabled in the Clipboard Inserter extension settings.
This is required for offline execution.

2. (Browser) Install browser extensions such as Yomitan and 10ten

Install any browser extension to look up words.
For learning Japanese, there are Yomitan and 10ten.

Whole text is sent to the browser so any extensions can be used.

3. (LLPlayer) Enable the auto subtitle copy feature

Please open settings in LLPlayer and open section Subtitles > Word Action.

In Subtitles Auto Copy, Please enable Auto Text Copy toggle.
In Auto Text Copy Target, You can select the subtitles to be copied. The default is to copy the primary subtitle.

Subtitles Auto Copy can be toggled with the shortcut keys described below, so it is recommended that the default setting be disabled and saved.

4. (LLPlayer) Set up a shortcut to toggle auto-copy

It is recommended that you toggle the auto-copy feature as needed, as subtitles are copied to the clipboard each time they change.
The default key is set to Alt+A.

If you want to change this, or if it is not set, let's set it.

Please open settings and open section Keys.

Action: ToggleSubsAutoTextCopy (subtitles) is the toggle action, Please set this to any shortcut you like.

5. (Browser) Open "Texthooker" page

You need a web page to insert subtitles obtained via the clipboard.
I recommend a specialized page such as Texthooker below, which has convenient features such as auto-scrolling.

https://anacreondjt.gitlab.io/docs/texthooker/

It is also possible to run offline by downloading the following pages as html.

https://anacreondjt.gitlab.io/texthooker.html

6. (Browser) Enable the Clipboard Inserter on the Texthooker page

After opening the Texthooker page, activate the Clipboard Inserter by clicking on the extension icon in the upper right corner of your browser.

7. (LLPlayer) Play video with subtitles

Each time the subtitle changes, the text subtitle is copied to the browser.

Thus, you can use a browser extension such as Yomitan or 10ten to look up the meaning of words.

Note that this will not work for bitmap subtitles. You must prepare text subtitles or convert bitmap to text with OCR.

If you no longer need it, press Alt+A or other to turn off the auto-copy function.