Verba is a local-first, cross-browser Manifest V3 WebExtension for Chrome / Brave / Edge / Chromium and Firefox (121+) that turns web articles, EPUB/PDF/MOBI books, and streaming or local videos into an interactive language-learning environment across 24 languages.
Pre-built bundles and all 24 offline dictionaries are included directly in this repository, so you can load the extension immediately without installing Node.js.
Clone the repository or download the ZIP archive from GitHub:
git clone https://github.com/WordsGPT/testextension.git
cd testextension(Or click Code → Download ZIP on GitHub and extract the folder anywhere on your computer.)
- Open
chrome://extensions(orbrave://extensions/edge://extensions) in your browser. - Enable Developer mode (toggle in the top-right corner).
- Click Load unpacked (top-left) and select the
testextensionfolder you cloned or extracted. - Pin Verba from your browser's extensions toolbar puzzle icon.
Important
Do not use about:addons ("Install Add-on From File…") and do not pass GitHub's testextension-main.zip directly into Firefox—GitHub wraps the repository inside a testextension-main/ subfolder, and about:addons requires a Mozilla-signed .xpi, both of which cause Firefox to show "This add-on could not be installed because it appears to be corrupt."
Instead, load it via about:debugging:
- Open
about:debugging#/runtime/this-firefoxin your Firefox address bar. - Click Load Temporary Add-on….
- Select either:
manifest.jsoninside your unzippedtestextensionfolder, ordist/verba-firefox.zip(Direct Download Link).
-
24 Languages & Bundled Offline Dictionaries
- Italian, Spanish, French, German, Portuguese, Dutch, Swedish, Norwegian, Danish, Finnish, Polish, Russian, Ukrainian, Greek, Turkish, Arabic, Mandarin Chinese (Simplified & Traditional), Cantonese, Japanese, Korean, Vietnamese, Thai, Indonesian, and English.
- Word segmentation for spaceless scripts (Japanese, Chinese, Thai) via
Intl.Segmenter+ dictionary longest-prefix matching. - Automatic Furigana, Pinyin, Jyutping, Korean romanization, and character decomposition breakdowns.
-
Adaptive CEFR Placement Test (
A0→C2)- 12-question computer-adaptive staircase assessment across 6 CEFR frequency bands (
A1,A2,B1,B2,C1,C2) for all 24 languages. - Mixes Word → Meaning and Meaning → Word questions with 4 choices + an
"I'm not sure yet"option (Space/0). - Reports diagnosed CEFR level (
A0–C2), estimated passive vocabulary size, per-band accuracy breakdown, and 1-Click Vocabulary Calibration (with 1-click Undo).
- 12-question computer-adaptive staircase assessment across 6 CEFR frequency bands (
-
Web Highlighting, Inline Word Replacement ("Diglot Weave"), Reader View & Sentence Mode
- Highlights target-language words using
<verba-w>custom elements with customizable styles. -
Inline Word Replacement / Diglot Weave (
Shift+W): Grounded in Trusty & Truong (ACM CHI 2011) and VocabEncounter (ACM CHI 2022), passively weaves target-language content words (prioritizing active Learning1–4and$i+1$ vocabulary) directly into English/native-language web pages you browse daily, with hover/click Word Panel lookup, optional inline L1 hints, and 1-click single-word or full-page revert. -
Reader View (
Shift+L): Distraction-free reading with Dark, Sepia, and White paper themes, typography controls, and automatic saving to your Bookshelf. -
Sentence-by-Sentence (
Shift+S): Step through articles or books one sentence at a time with instant translation and TTS audio. -
Read Aloud (
Shift+R): Synchronized sentence-by-sentence speech synthesis.
- Highlights target-language words using
-
Dual Captions & Local Video Player
- Works on YouTube, Netflix, and HTML5 videos, plus the built-in local video player (
video.html) with drag-and-drop.srt/.vtt/.asssupport. - Independent target/translation blur modes (
Eto peek), auto-pause after each line (Q), line stepping (A/S/D), and a live transcript & vocabulary drawer (W).
- Works on YouTube, Netflix, and HTML5 videos, plus the built-in local video player (
-
Two-Way AnkiConnect, E2EE Backups & Vocabulary Importers
- Two-way AnkiConnect integration (
127.0.0.1:8765), PBKDF2-SHA256 / AES-256-GCM encrypted backup bundles, and importers for LingQ, Language Reactor, HanziHero, Yomitan, and CSV/TSV word lists.
- Two-way AnkiConnect integration (
| Action | Default Shortcut |
|---|---|
Grade word 1–4 / Known / Ignore / New |
1 2 3 4 / K / X / 0 |
| Open Reader View | Shift+L |
| Sentence-by-Sentence Mode | Shift+S |
| Read Aloud (TTS) | Shift+R |
| Toggle Page Highlights | Shift+H |
| Toggle Inline Word Replacement (Diglot Weave) | Shift+W |
| Mark All Page Blue Words Known | Shift+K |
| Video: Previous / Replay / Next Subtitle Line | A / S / D |
| Video: Peek Blurred Subtitle / Translation | E |
| Video: Toggle Auto-Pause After Each Line | Q |
| Video: Open Transcript & Video Words Drawer | W |
- OS: Linux, macOS, or Windows
- Node.js:
v20.xorv22.xLTS (includesnpm)
npm ci
npm run buildRunning npm run build executes:
npm run build:icons(node scripts/build-icons.mjs) — generates PNG/SVG icons inicons/npm run build:dicts(node scripts/build-dictionaries.mjs) — generates offline dictionaries indictionaries/and sample reading/subtitle files insamples/npm run build:js(node scripts/build.mjs) — compiles TypeScript (src/**/*.ts) viaesbuildintodist/*.jsand copiesdist/pdf.worker.min.mjsnpm run package:firefox(node scripts/package-firefox.mjs) — packages the reproducible Firefox add-on archive atdist/verba-firefox.zip
npm run typecheck
npm run test:unit
npm run test:e2e