[GH-ISSUE #90] Feature Request : Improve compatibility with KDE Plasma #64

Open
opened 2026-03-04 00:03:31 +03:00 by kerem · 1 comment
Owner

Originally created by @D3SOX on GitHub (Aug 31, 2025).
Original GitHub issue: https://github.com/YouG-o/YouTube-No-Translation/issues/90

Originally assigned to: @YouG-o on GitHub.

Problem

The video titles transmitted via the Browser integration addon to MPRIS are still the translated ones. See the part in the source code responsible.
It looks to me like it's getting it from some metadata. Maybe it's also a timing problem because it only updates the title once?

Proposed Solution

Somehow set it that it grabs/updates to the "correct" title

Additional Context

I tried fiddling around and running

navigator.mediaSession.metadata = new MediaMetadata({
  title: document.querySelector('#title').innerText,
});

fixed it but the thumbnail as cover art was gone

Originally created by @D3SOX on GitHub (Aug 31, 2025). Original GitHub issue: https://github.com/YouG-o/YouTube-No-Translation/issues/90 Originally assigned to: @YouG-o on GitHub. ## Problem The video titles transmitted via the [Browser integration](https://community.kde.org/Plasma/Browser_Integration) addon to MPRIS are still the translated ones. See [the part in the source code](https://invent.kde.org/plasma/plasma-browser-integration/-/blob/master/extension/extension-mpris.js?ref_type=heads) responsible. It looks to me like it's getting it from some metadata. Maybe it's also a timing problem because it only updates the title once? ## Proposed Solution Somehow set it that it grabs/updates to the "correct" title ## Additional Context I tried fiddling around and running ```js navigator.mediaSession.metadata = new MediaMetadata({ title: document.querySelector('#title').innerText, }); ``` fixed it but the thumbnail as cover art was gone
Author
Owner

@YouG-o commented on GitHub (Sep 1, 2025):

I'll see what I can do.

But, I'm considering intercepting the request to YouTube and forcing it to return original titles directly in the API response. This should solve the issue everywhere, including MPRIS, without needing to patch the DOM or response afterwards.
Can't promise any ETA though.

<!-- gh-comment-id:3242889740 --> @YouG-o commented on GitHub (Sep 1, 2025): I'll see what I can do. But, I'm considering intercepting the request to YouTube and forcing it to return original titles directly in the API response. This should solve the issue everywhere, including MPRIS, without needing to patch the DOM or response afterwards. Can't promise any ETA though.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/YouTube-No-Translation#64
No description provided.