Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ note on what to update.

## [Unreleased]

### Added

- **Streaming sites without the immersion profile.** "Count streaming sites" in the dashboard settings turns on
Netflix, Crunchyroll, Prime Video and Disney+ (the last two experimental), each one apart, asking for access
to that site's pages only. Inputly reads which audio track the player plays and counts the episode or film
only when it is in your language; ads are left out where the player shows them. The popup and the day's list
name the episode. In the immersion profile every title of a site turned on counts. See
[docs/streaming.md](docs/streaming.md).
- The popup shows the title of the video it is counting, on YouTube too.

## [0.1.1] - 2026-11-23

Fixes that make the count more honest: ads, a failed player and crashes no longer add or lose time.
Expand Down
21 changes: 20 additions & 1 deletion PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ It stores on your computer (in `chrome.storage.local`):
Mosaik" on, it goes to your Mosaik: [see below](#what-happens-when-you-turn-on-send-to-mosaik));
- the **corrections** you make to a day (a number of seconds, and when you made it);
- your **daily goal** and your settings (the language you learn, light or dark, the range of the chart, the
immersion profile);
immersion profile, the streaming sites you turned on);
- the **ids of the videos you marked** as in the language you learn or not, for each language, so the
decision is remembered;
- only if you turn on "Send to Mosaik": its settings (with the device token, if your Mosaik is on a
Expand Down Expand Up @@ -69,6 +69,24 @@ its language. When you turn it on in the dashboard settings, your browser asks y

Turning it off stops the script. The permissions stay granted until you remove them in `chrome://extensions`.

## Streaming sites

Counting Netflix, Crunchyroll, Prime Video and Disney+ is **optional and off by default**, for each site apart.
When you turn a site on in the dashboard settings ("Count streaming sites"), your browser asks you for
`scripting` and access to that site's pages only (for Crunchyroll also `static.crunchyroll.com`, where its
player is; for Prime Video also the Amazon stores where it plays: amazon.com, .co.uk, .de and .co.jp). Then,
in the pages of that site, Inputly reads **in your browser**:

- whether the video is playing, and whether the player shows an ad (ads are not counted);
- from the player, the id and the title of the episode or film, the language of the audio track it plays and
of the subtitles shown, only to decide whether it is in the language you learn.

It keeps the address, the title and the seconds of each episode or film in your language in the list of the
day above, and your decisions about which ones are in your language. It does not read your account, your
profile, your watch history, your lists or your recommendations, and makes no request to those sites or to
anyone else. Turning a site off stops its scripts; the access stays granted until you remove it in
`chrome://extensions`.

## Reading counted by hand

The popup has a button to count reading with no video (a comic, for example). While it runs, Inputly counts the
Expand Down Expand Up @@ -118,6 +136,7 @@ dashboard (the squares button). Then:
## Your choices

- **Turn off the immersion profile** in the dashboard settings: no more pages are looked at.
- **Turn off a streaming site** in the dashboard settings: its pages are no longer looked at.
- **Turn off "Send to Mosaik"** in the dashboard: nothing more is sent, and what was waiting is deleted.
- **Uninstall** the extension to delete everything it kept on that computer.

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ days, weeks and months, so you can see how much input you really get.
- **A day you can explain and correct.** Click a day in the dashboard to see which videos made it up
(for the last 60 days), take out the ones that were not in your language, or say how many minutes you really
watched.
- **Netflix and Crunchyroll, if you want.** Turn a site on in the settings of the dashboard ("Count
streaming sites") and Inputly counts what plays there in your language, from the audio track the player
says it plays; ads are left out. Prime Video and Disney+ are there too, as experimental. Each site asks
for access to its own pages only. See [docs/streaming.md](docs/streaming.md).
- **An immersion profile.** In a Chrome profile you use only for the language you learn, turn it on in the settings of the
dashboard and every video that plays with sound counts, on any site, with no guessing. So does any tab
that plays sound for 30 seconds or more, like a podcast; a word a dictionary says does not.
Expand Down
23 changes: 22 additions & 1 deletion docs/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ data stays German.
Worth doing before or soon after
the first release; each is its own task.

- [ ] **2.7 Streaming sites without the immersion profile.** Count Netflix, Prime Video, Crunchyroll and
- [x] **2.7 Streaming sites without the immersion profile.** Count Netflix, Prime Video, Crunchyroll and
Disney+ in the target language, from the audio or subtitle track the player says is playing.
Investigate each player first; the store review needs a reason for each new host permission.
Done in [streaming.md](streaming.md): all four ship, off by default, each asked for from the settings
as an optional host inside `<all_urls>`; Prime Video and Disney+ marked experimental. What is left is a
check by hand with real accounts (see the note of 2.7).
- [x] **2.8 Leave out ads** on YouTube (and on the sites of 2.7): time an ad plays is not input.
- [x] **2.9 Recover after a crash.** Time counted while the browser or the service worker dies is not
lost.
Expand Down Expand Up @@ -311,3 +314,21 @@ Sessions add here what the next one needs to know: decisions taken, dead ends, f
instead) and the sleep path of the sound, both covered by unit tests. Follow-up: after an extension update
or reload, a tab opened before it keeps a content script that cannot reach the extension any more and
counts nothing until the page is reloaded; re-injecting the scripts on update needs `scripting` for YouTube.
- 2026-11-23, task 2.7: the streaming sites are registered at runtime (`scheduleStreaming` in `background.js`)
from a per-site switch in the settings, which asks for `scripting` and that site's origins only
(`sites.js`). Both are inside the optional `scripting` and `<all_urls>` the manifest already had, so the
manifest only gained a `web_accessible_resources` entry and 0.2.0 shows no new warning at install; static
content scripts would have warned every user and disabled the extension until accepted. A page script
(`streaming-bridge.js`, world `MAIN`) copies plain values from each player and `streaming.js` reads them;
the audio track decides, subtitles never do, and a site whose player cannot be read counts nothing (fails
closed). Stored: a new key `streamingSites` (`{ netflix: true }`) and web items `web:<hash>` of
`https://www.netflix.com/watch/<id>` and the like, so no stored shape changed and `STORAGE_VERSION` stays;
`override` messages and "take out of the day" now accept web item ids too. What was seen: Crunchyroll's
store (`content.media.byId[watch.id].audioLocale`) on the real site, logged out (every episode was premium
only, so nothing played; no free tier with ads seen); counting was then checked in Chrome 157 with that
store shape served at a Crunchyroll address, in the page and in a `static.crunchyroll.com` frame, because
the real site shows a bot check to a browser driven through CDP. Netflix comes from published probe output
(LingoFlix); Prime Video and Disney+ from one open-source tool each, hence "experimental". Not checked: any
real playback, ads on any of the four, Firefox. Follow-ups: the maintainer's check by hand
([streaming.md](streaming.md#checking-by-hand)); a Crunchyroll ad rule if a free tier with ads shows up; more
Amazon stores for Prime Video if someone asks.
Loading