Repository navigation
feat(streaming): count Netflix, Crunchyroll, Prime Video and Disney+ - #60
Merged
Merged
Conversation
Each site is off until turned on in the dashboard settings, which asks for scripting and that site's pages only (inside the optional <all_urls>, so no new install warning). A page script copies what the player says; pure readers turn it into the episode, its audio language and whether an ad plays. The audio track decides; a player that cannot be read counts nothing. The popup shows the title of what it counts. Investigation in docs/streaming.md. Assisted-by: Claude Code:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Task 2.7 of the plan: Netflix, Crunchyroll, Prime Video and Disney+ count in the target language without the immersion profile.
scriptingand that site's pages only (extension/src/sites.js). Both are inside the optionalscriptingand<all_urls>the manifest already declares, so 0.2.0 shows no new install warning and the manifest only gains aweb_accessible_resourcesentry.scheduleStreaming):streaming-bridge.js(worldMAIN, copies plain values from the player; no requests, no hooks, never writes to the page) andstreaming-content.js(counts with the existingWatcher,delivery.js, overrides and ad handling).extension/src/streaming.js: pure readers per site →{ key, title, audioLanguage, subtitleLanguages, ad }. The audio track decides; subtitles never do. A player that cannot be read counts nothing (fails closed).static.crunchyroll.com; the frame tells the page whether its video plays (origin checked).web:<hash>ofhttps://www.netflix.com/watch/<id>…), named in the day's list. The popup now shows the title under the status (YouTube too). The popup's correction works per episode.generic.jsleaves a page counted by the streaming script alone (no double naming).streamingSites; web items as before), so noSTORAGE_VERSIONbump.Docs:
docs/streaming.md(investigation per site, sources, verified vs inferred, hand-check steps), PRIVACY.md (new "Streaming sites" section), store listing (description, single purpose, justification rows, why per-site optional permissions), README, CHANGELOG, plan (2.7 ticked + note).Why
The announcement (3.2) waits for this: many learners watch Netflix and Crunchyroll.
Testing
npm test(384 pass; newtests/streaming.test.js,tests/sites.test.js, a status test),npm run lint,npm run format:check,npm run lint:firefox(0 errors, the known Android warning).content.media.byId[watch.id].audioLocale(ja-JPfor the original,es-419for the dub); the bridge's store lookup found it. The test data is that capture. Every episode was premium-only, so nothing played.<video>: 11 s counted under "One Piece E1 - …" with Spanish as target, nothing more after switching to Japanese; with the video in astatic.crunchyroll.comiframe, 33 s. Turning the site off unregistered its scripts.Please check by hand with your accounts (Chrome, unpacked)
For each of Netflix and Crunchyroll (and Prime Video / Disney+ if you have them):
If a step fails, run the console snippet at the end of
docs/streaming.mdwhile it plays and paste the output.Checklist
fix(tracker): ...), in English.npm testpasses.npm run lintandnpm run format:checkpass.STORAGE_VERSIONinextension/src/log.jsis bumped and old data is migrated. (Not changed.)🤖 Generated with Claude Code
AI assistance
Assisted-by: Claude Code:claude-opus-5-5