From fa7eea54d860bdc8e582b71407dbe270ba725c3c Mon Sep 17 00:00:00 2001 From: Timo <6156589+Shik3i@users.noreply.github.com> Date: Wed, 1 Jul 2026 19:21:38 +0200 Subject: [PATCH] Split tab and media title privacy controls --- docs/CHANGELOG.md | 2 +- docs/HOW_IT_WORKS.md | 2 +- docs/PRIVACY.md | 2 +- extension/background.js | 40 ++++++++++++++-------------------- extension/locales/de.json | 10 ++++++--- extension/locales/en.json | 14 +++++++----- extension/locales/es.json | 14 +++++++----- extension/locales/fr.json | 14 +++++++----- extension/locales/it.json | 14 +++++++----- extension/locales/ja.json | 14 +++++++----- extension/locales/ko.json | 14 +++++++----- extension/locales/nl.json | 14 +++++++----- extension/locales/pl.json | 14 +++++++----- extension/locales/pt-BR.json | 14 +++++++----- extension/locales/pt.json | 14 +++++++----- extension/locales/ru.json | 14 +++++++----- extension/locales/tr.json | 14 +++++++----- extension/locales/uk.json | 14 +++++++----- extension/locales/zh.json | 14 +++++++----- extension/popup.html | 26 +++++++++++++++------- extension/popup.js | 26 ++++++++++++++++------ extension/title-privacy.js | 12 +++++++++- scripts/test-title-privacy.mjs | 26 ++++++++++++++++------ 23 files changed, 219 insertions(+), 123 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 35ba985..6b84b4f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -7,7 +7,7 @@ All notable changes to the KoalaSync browser extension and relay server. ## Unreleased ### Added -- **Extension: Shared title privacy setting** - Advanced users can now choose whether KoalaSync shares full tab/media titles, only detected episode identifiers such as `S01E04`, or no shared titles at all. The default remains full titles for backwards compatibility. +- **Extension: Privacy title controls** - Advanced users can now disable sending browser tab titles separately from media titles. Media titles can still be sent in full, reduced to detected episode identifiers such as `S01E04`, or hidden entirely. Defaults remain full titles for backwards compatibility. --- diff --git a/docs/HOW_IT_WORKS.md b/docs/HOW_IT_WORKS.md index 46f8a94..fa41b44 100644 --- a/docs/HOW_IT_WORKS.md +++ b/docs/HOW_IT_WORKS.md @@ -184,7 +184,7 @@ When a user clicks **"Leave"** or closes their browser: When watching a series and an episode ends: 1. `content.js` monitors the [Media Session API](https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API) for title changes. -2. When a new title is detected, the peer broadcasts `EPISODE_LOBBY` with the expected title after applying the local Shared Titles privacy setting. In episode-only mode this is an identifier such as `S01E04`; in hidden mode the client does not create a new episode lobby. +2. When a new title is detected, the peer broadcasts `EPISODE_LOBBY` with the expected title after applying the local media title privacy setting. In episode-only mode this is an identifier such as `S01E04`; when media titles are not sent, the client does not create a new episode lobby. 3. All peers' videos freeze. The UI shows an "Episode Lobby" card with peer readiness status. 4. Each peer's `content.js` polls for the new title to appear in the `