diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d7a200..6751b5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ note on what to update. ## [Unreleased] +### Changed + +- The store name is now "Inputly – Language Immersion Tracker for YouTube & Netflix" and the summary names + Netflix and Crunchyroll; the toolbar button still says "Inputly". New store screenshots lead with the + popup on a streaming episode. + ## [0.2.0] - 2026-11-23 Streaming sites: Netflix, Crunchyroll, Prime Video and Disney+ count in the language you learn. diff --git a/docs/plan.md b/docs/plan.md index 50fb52a..983f5e6 100644 --- a/docs/plan.md +++ b/docs/plan.md @@ -28,7 +28,8 @@ it on its own, even if the next one never happens. - **D1. The name: Inputly** (2026-11-23). "Deuchan" said German. The store name is "Inputly – Track your language input", and the GitHub repository is renamed to `Inputly` (GitHub redirects the old address). - Task 1.6 does the rename. + Task 1.6 does the rename. Task 3.4 changed the store name to "Inputly – Language Immersion Tracker for + YouTube & Netflix", for search. ## Phase 1: any language @@ -111,8 +112,13 @@ users) and from what people write. - [ ] **3.2 Announce it** where people count their input: r/LearnJapanese, r/languagelearning, r/German, the Refold community. Draft the posts in a session; the maintainer posts them. **Drafted** in [announce.md](announce.md); stays open until the maintainer has posted them. + **Posted** on 2026-11-23 on the Refold forum (General) and in the Refold Discord; the r/dreamingspanish + moderators were sent a message asking for permission to post. - [ ] **3.3 Listen.** Turn feedback into issues; fix what blocks people first. Watch which features people ask for. +- [x] **3.4 Store listing for search.** A name and a summary with the words people search for (immersion, + tracker, the sites), a description that leads with the sites and any language, a first screenshot of + the popup on a streaming episode, and the landing page's meta and hero to match. For 0.2.1. ## Later @@ -347,3 +353,20 @@ Sessions add here what the next one needs to know: decisions taken, dead ends, f r/Korean skipped for now. The Discord rules were not read. Every Chrome link carries its own `utm_` campaign. The drafts are on purpose different from each other, and the maintainer rewrites each one before posting. Check that the Chrome listing shows 0.2.0 before posting. +- 2026-11-23, task 3.2: the maintainer posted on the Refold forum (General) and in the Refold Discord, and sent + the r/dreamingspanish moderators a message asking for permission to post. +- 2026-11-23, task 3.4: the name is "Inputly – Language Immersion Tracker for YouTube & Netflix" (58 of 75) + rather than "Inputly – Input Hours Tracker for YouTube, Netflix & Crunchyroll": "immersion tracker" is the + phrase learners and the competition use, and the shorter name stays whole in search results; Crunchyroll + is in the summary. The summary (and the manifest `description`) is "Counts your input hours in any language + on YouTube, Netflix and Crunchyroll. Daily goal, streak, private, no account." (117 of 132); it does not say + "automatically", since Netflix and Crunchyroll count only once turned on. Prime Video and Disney+ stay out of + the name, the summary and the description (named "two more streaming sites ... as experimental") while they + are experimental, which also keeps the description at three site names; each of them appears 4 times. The + description's privacy line says the history stays in the browser unless the Mosaik export is on. The + screenshots are now: the popup on a made-up streaming episode (`?status=streaming` in `capture.mjs`, a + second text in `popup-frame.html`), the day opened, the YouTube popup, the dark dashboard and the language + picker; the light dashboard is gone, from the landing page too (`site/img/streaming.jpg` took its place). + `capture.mjs` also writes PNG copies to `dist/subir-a-la-tienda/` for Edge. The new name and summary reach + the stores only with the next package (0.2.1); the description and images are pasted and uploaded by hand + with it, in both stores. diff --git a/docs/store-listing.md b/docs/store-listing.md index 5ecbc05..f92a1e8 100644 --- a/docs/store-listing.md +++ b/docs/store-listing.md @@ -7,13 +7,16 @@ in [Firefox Add-ons (AMO)](#firefox-add-ons-amo). ## Store listing tab -**Name:** Inputly – Track your language input +**Name:** Inputly – Language Immersion Tracker for YouTube & Netflix -It is the `name` of the manifest (75 characters at most). The toolbar button says only "Inputly". +It is the `name` of the manifest (75 characters at most; this one is 58). The toolbar button says only +"Inputly". The words after the dash are the ones people search for ("immersion", "tracker", the sites): +store search weighs the name first and the summary second. Prime Video and Disney+ stay out of the name and +the summary while they are experimental, and Crunchyroll is in the summary. -**Summary** (it is the `description` of the manifest, 132 characters at most): +**Summary** (it is the `description` of the manifest, 132 characters at most; this one is 117): -> Counts your input in the language you learn: detects the language of each YouTube video. Daily goal, charts, private, no account. +> Counts your input hours in any language on YouTube, Netflix and Crunchyroll. Daily goal, streak, private, no account. **Category:** Education @@ -22,34 +25,39 @@ It is the `name` of the manifest (75 characters at most). The toolbar button say **Description:** ``` -Inputly counts the time you spend on input in the language you learn (Japanese, Spanish, Korean, German, -French, Chinese or any other) and shows it against a daily goal. No timers to start or stop: you watch, -and it adds up the minutes. It is made for people who learn a language by immersion and want to know how -much input they really get. +Inputly counts the minutes you watch in the language you learn, on YouTube, Netflix and Crunchyroll, and +shows them against a daily goal. Any language, no timers, no account. + +New in 0.2: Netflix and Crunchyroll count by the audio track that plays (turn them on in the settings). + +It is made for people who learn a language by immersion (Japanese, Spanish, Korean, German, French, +Chinese or any other) and want to know how many hours of input they really get. You watch, and it adds up +the minutes. WHAT MAKES INPUTLY DIFFERENT -• It decides the language of each YouTube video. You do not need an account or a profile kept only for - the language: Inputly looks at the audio track that plays and the automatic captions YouTube makes from - the speech or, when there are none, at the title and description (with Chrome's built-in language +• It decides the language of each video. You do not need an account or a profile kept only for the + language: on YouTube, Inputly looks at the audio track that plays and the automatic captions made from + the speech or, when there are none, at the title and description (with the browser's built-in language detector, on your computer). Videos in other languages are not counted. • One click corrects it. When it gets a video wrong, a button in the popup marks it as in your language, or as not, and the choice is remembered. Click a day in the dashboard to see the videos that made it up, take one out, or correct the minutes of the whole day. • Your day ends at 4:00, not at midnight: an episode watched late at night counts for that day. -• An immersion profile counts any site and any sound. Turn it on in a Chrome profile you use only for the +• An immersion profile counts any site and any sound. Turn it on in a browser profile you use only for the language you learn: every video that plays with sound counts, on any site, and so does any tab that plays sound for 30 seconds or more, like a podcast. It is off by default. • Reading counts too. A button in the popup counts a comic, a book or an article until you stop it, or until you leave the computer for 15 minutes. -• Private, with no account. Everything stays in your browser. No sign-up, no ads, no analytics, no - trackers. +• Private, with no account. Your history stays in your browser unless you turn on the optional export to + Mosaik, an app you run yourself. No sign-up, no ads, no analytics, no trackers. HOW IT COUNTS • It counts the real seconds a video in your language plays. Pausing, rewinding and looping are handled, and at 2x a minute is still a minute. Two tabs playing at once count once. -• By itself it counts YouTube. Netflix and Crunchyroll count too once you turn them on in the settings (Prime - Video and Disney+ as experimental): Inputly reads which audio track the player plays and counts it only in - your language. Other sites (Twitch, podcasts) count with the immersion profile on. +• YouTube counts as soon as you install it. Netflix and Crunchyroll count once you turn them on in the + settings (two more streaming sites are there as experimental): Inputly reads which audio track the player + plays and counts it only in your language, so subtitles never decide. Other sites count with the + immersion profile on. • Pick your language when you install it, and change it any time in the settings. The popup says it: "Counting Japanese", "Not Japanese, not counted". @@ -63,24 +71,29 @@ WHAT YOU SEE OPEN SOURCE The extension is open source (MIT): https://github.com/joaquinmuzzi/inputly -Inputly is an independent project. It is not affiliated with, endorsed by or sponsored by YouTube, Google, -Netflix, Crunchyroll, Amazon or Disney. YouTube is a trademark of Google LLC; the other names are trademarks -of their owners. +Inputly is an independent project. It is not affiliated with, endorsed by or sponsored by YouTube, Netflix +or Crunchyroll. The names are trademarks of their owners. ``` **Images** (1280 × 800 JPEG, from the real extension pages with the invented history of someone who learns -Japanese; the first two show what only Inputly does). Upload them in this order: +Japanese; the first one shows the streaming sites people search for, the next two what only Inputly does). +Upload them in this order: -1. [A day opened to its videos](store/screenshot-1-day-videos.jpg), each with "Not Japanese" to take it out +1. [The popup on a streaming episode](store/screenshot-1-streaming.jpg) saying "Counting Japanese" under a + made-up episode title, beside "Netflix and Crunchyroll count too" and a few lines on the audio track. The + answer of the tab is given by the demo; everything else is the real popup. +2. [A day opened to its videos](store/screenshot-2-day-videos.jpg), each with "Not Japanese" to take it out of the day, and the minutes to correct. -2. [The popup](store/screenshot-2-popup.jpg) saying "Counting Japanese", beside a few lines on the detection +3. [The popup](store/screenshot-3-popup.jpg) saying "Counting Japanese", beside a few lines on the detection per video, the one-click correction and the day that ends at 4:00. The answer of the YouTube tab is given by the demo, as there is no video playing; everything else is the real popup. -3. [Dashboard, dark](store/screenshot-3-dashboard-dark.jpg) -4. [Dashboard, light](store/screenshot-4-dashboard-light.jpg) +4. [Dashboard, dark](store/screenshot-4-dashboard-dark.jpg) 5. [The language picker](store/screenshot-5-language.jpg) in the settings, drawn as an open list (a native drop-down does not show in a screenshot). +Edge Add-ons takes only PNG: the same script writes a PNG of each image, and of the promo tile, to +`dist/subir-a-la-tienda/` (not committed). + They are made with `node scripts/screenshots/capture.mjs` (see task 2.2 in the [plan](plan.md#notes)). **Small promo tile** (440 × 280): [promo-small-440x280.jpg](store/promo-small-440x280.jpg) diff --git a/docs/store/screenshot-1-streaming.jpg b/docs/store/screenshot-1-streaming.jpg new file mode 100644 index 0000000..2a232a4 Binary files /dev/null and b/docs/store/screenshot-1-streaming.jpg differ diff --git a/docs/store/screenshot-1-day-videos.jpg b/docs/store/screenshot-2-day-videos.jpg similarity index 100% rename from docs/store/screenshot-1-day-videos.jpg rename to docs/store/screenshot-2-day-videos.jpg diff --git a/docs/store/screenshot-2-popup.jpg b/docs/store/screenshot-3-popup.jpg similarity index 100% rename from docs/store/screenshot-2-popup.jpg rename to docs/store/screenshot-3-popup.jpg diff --git a/docs/store/screenshot-3-dashboard-dark.jpg b/docs/store/screenshot-4-dashboard-dark.jpg similarity index 100% rename from docs/store/screenshot-3-dashboard-dark.jpg rename to docs/store/screenshot-4-dashboard-dark.jpg diff --git a/docs/store/screenshot-4-dashboard-light.jpg b/docs/store/screenshot-4-dashboard-light.jpg deleted file mode 100644 index 536e017..0000000 Binary files a/docs/store/screenshot-4-dashboard-light.jpg and /dev/null differ diff --git a/docs/store/screenshot-5-language.jpg b/docs/store/screenshot-5-language.jpg index f0e5315..87f3a5b 100644 Binary files a/docs/store/screenshot-5-language.jpg and b/docs/store/screenshot-5-language.jpg differ diff --git a/extension/manifest.json b/extension/manifest.json index 18c3f65..ab049c0 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 3, - "name": "Inputly – Track your language input", + "name": "Inputly – Language Immersion Tracker for YouTube & Netflix", "version": "0.2.0", - "description": "Counts your input in the language you learn: detects the language of each YouTube video. Daily goal, charts, private, no account.", + "description": "Counts your input hours in any language on YouTube, Netflix and Crunchyroll. Daily goal, streak, private, no account.", "homepage_url": "https://github.com/joaquinmuzzi/inputly", "minimum_chrome_version": "111", "permissions": ["storage", "alarms", "idle", "activeTab"], diff --git a/scripts/firefox.mjs b/scripts/firefox.mjs index 547c630..aa29581 100644 --- a/scripts/firefox.mjs +++ b/scripts/firefox.mjs @@ -16,6 +16,14 @@ export const GECKO_ID = "inputly@joaquinmuzzi.github.io"; */ export const FIREFOX_MIN_VERSION = "140.0"; +/** + * The name in Firefox. Firefox refuses a `name` longer than 45 characters (web-ext lint: "/name must NOT have + * more than 45 characters"), while the Chrome name carries the words people search the Chrome Web Store for + * and is longer. AMO search reads the listing too, so the short name loses little. + */ +export const FIREFOX_NAME = "Inputly – Language Immersion Tracker"; +const FIREFOX_NAME_MAX = 45; + /** Keys only Chrome reads: Firefox warns about them, so they are left out. */ const CHROME_ONLY = ["minimum_chrome_version"]; @@ -34,6 +42,9 @@ export function firefoxManifest(manifest) { throw new Error("The Chrome manifest has no background service worker"); } result.background = { ...background, scripts: [worker] }; + if (result.name.length > FIREFOX_NAME_MAX) { + result.name = FIREFOX_NAME; + } result.browser_specific_settings = { gecko: { id: GECKO_ID, diff --git a/scripts/screenshots/capture.mjs b/scripts/screenshots/capture.mjs index f0a06d4..c5ae432 100644 --- a/scripts/screenshots/capture.mjs +++ b/scripts/screenshots/capture.mjs @@ -6,8 +6,10 @@ // `chrome` API (chrome-stub.js) in each extension page, opens the pages in a headless Chrome or Edge // through the DevTools protocol, and saves JPEGs at the exact sizes the store asks for. Set CHROME to the // browser's path if it is not found. Nothing here is packaged: `npm run package` takes only `extension/`. +// It also writes a PNG of each image to dist/subir-a-la-tienda/ (not committed), since Edge Add-ons takes +// only PNG. import { spawn } from "node:child_process"; -import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; +import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { createServer } from "node:http"; import { tmpdir } from "node:os"; import { dirname, extname, join, normalize, resolve } from "node:path"; @@ -17,48 +19,64 @@ import { DEMO_NOW, OPENED_DAY, demoStorage } from "./demo-data.mjs"; const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../.."); const OUT = join(ROOT, "docs/store"); +const PNG_OUT = join(ROOT, "dist/subir-a-la-tienda"); const QUALITY = 90; -/** What the YouTube tab answers in the popup: a Japanese video that plays. */ -const PLAYING_STATUS = { inTarget: true, playing: true, immersion: false }; +/** + * What the tab answers in the popup, picked with `?status=` in the page address: a Japanese YouTube video + * that plays, or an episode on a streaming site (Netflix or Crunchyroll) whose audio track is Japanese. The + * episode is made up: no real show's name or art appears in the store images. + */ +const STATUSES = { + youtube: { inTarget: true, playing: true, immersion: false }, + streaming: { + inTarget: true, + playing: true, + immersion: false, + title: "Lantern Street S1:E4 The Night Market", + }, +}; /** * The images, in the order of the listing: the first ones show what only Inputly does (a video counted * only when it is in the language, and each one can be taken out of its day). `scale` is how many image * pixels each CSS pixel takes: the dialogs are small, so their pages are drawn larger to stay readable. - * `act` runs in the page once it has loaded. + * `query` is added to the page address (the popup frame passes it on to the popup). `act` runs in the page + * once it has loaded. */ const SHOTS = [ { - file: "screenshot-1-day-videos.jpg", - page: "extension/dashboard/dashboard.html", + // The streaming sites first: they are what people search for + file: "screenshot-1-streaming.jpg", + page: "scripts/screenshots/popup-frame.html", + query: "status=streaming", theme: "dark", width: 1280, height: 800, scale: 1.6, - act: `document.querySelector('.cell[data-day="${OPENED_DAY}"]').click(); - document.activeElement.blur();`, }, { - file: "screenshot-2-popup.jpg", - page: "scripts/screenshots/popup-frame.html", + file: "screenshot-2-day-videos.jpg", + page: "extension/dashboard/dashboard.html", theme: "dark", width: 1280, height: 800, scale: 1.6, + act: `document.querySelector('.cell[data-day="${OPENED_DAY}"]').click(); + document.activeElement.blur();`, }, { - file: "screenshot-3-dashboard-dark.jpg", - page: "extension/dashboard/dashboard.html", + file: "screenshot-3-popup.jpg", + page: "scripts/screenshots/popup-frame.html", theme: "dark", width: 1280, height: 800, - scale: 1, + scale: 1.6, }, { - file: "screenshot-4-dashboard-light.jpg", + file: "screenshot-4-dashboard-dark.jpg", page: "extension/dashboard/dashboard.html", - theme: "light", + theme: "dark", width: 1280, height: 800, scale: 1, @@ -114,7 +132,7 @@ function serve() { const demo = { now: DEMO_NOW, storage: demoStorage({ theme: url.searchParams.get("theme") ?? "dark" }), - status: PLAYING_STATUS, + status: STATUSES[url.searchParams.get("status") ?? "youtube"], }; const head = `` + @@ -224,7 +242,8 @@ async function capture(client, origin, shot) { features: [{ name: "prefers-color-scheme", value: shot.theme }], }); const loaded = client.once("Page.loadEventFired"); - await client.send("Page.navigate", { url: `${origin}/${shot.page}?theme=${shot.theme}` }); + const query = shot.query ? `&${shot.query}` : ""; + await client.send("Page.navigate", { url: `${origin}/${shot.page}?theme=${shot.theme}${query}` }); await loaded; // The pages render after reading the storage, and the popup frame loads the popup after its own load await wait(800); @@ -238,9 +257,15 @@ async function capture(client, origin, shot) { await client.send("Runtime.evaluate", { expression: "document.fonts.ready", awaitPromise: true }); const { data } = await client.send("Page.captureScreenshot", { format: "jpeg", quality: QUALITY }); writeFileSync(join(OUT, shot.file), Buffer.from(data, "base64")); - console.log(`Wrote docs/store/${shot.file} (${shot.width} × ${shot.height})`); + const png = await client.send("Page.captureScreenshot", { format: "png" }); + const pngFile = shot.file.replace(/\.jpg$/, ".png"); + writeFileSync(join(PNG_OUT, pngFile), Buffer.from(png.data, "base64")); + console.log( + `Wrote docs/store/${shot.file} and dist/subir-a-la-tienda/${pngFile} (${shot.width} × ${shot.height})`, + ); } +mkdirSync(PNG_OUT, { recursive: true }); const server = await serve(); const origin = `http://127.0.0.1:${server.address().port}`; const profile = mkdtempSync(join(tmpdir(), "inputly-shots-")); diff --git a/scripts/screenshots/popup-frame.html b/scripts/screenshots/popup-frame.html index 67a56a6..6e982ca 100644 --- a/scripts/screenshots/popup-frame.html +++ b/scripts/screenshots/popup-frame.html @@ -57,7 +57,8 @@
-Inputly works out the language of each video from its audio track, its captions and @@ -66,7 +67,20 @@
Wrong guess? One click corrects it, and it is remembered.
Your day ends at 4:00, so a late night counts for the day before.
+ Turn them on in the settings, and Inputly reads which audio track the player plays: + an episode counts only while its audio is in the language you learn. +
+Switch the audio to another language and the count stops.
+YouTube counts as soon as you install it, video by video.
+