Skip to content

Conversation

@groxaxo
Copy link

@groxaxo groxaxo commented Aug 10, 2025

Summary:

  • Add Kokoro TTS content script and context menus on Chrome/Edge and Firefox
  • Register content script in WXT config for Firefox; add Firefox background handlers
  • Fix TypeScript types in get-html.ts and get-tab-contents.ts; correct parseWikipedia call
  • Normalize CSP; remove invalid author; ensure CSP object across targets
  • Add minimal kokoro-js.d.ts typings
  • Update README with TTS usage and dev commands

Build: TypeScript compile passes; tested end-to-end on Firefox dev build.

Roo added 3 commits August 9, 2025 10:31
@n4ze3m
Copy link
Owner

n4ze3m commented Aug 11, 2025

Hey, thank you for the PR, this will be helpful for many users :) The only thing after checking the code is that you don't need to hardcode the content script into the WXT config file.

Roo added 2 commits August 14, 2025 03:13
…r injection

- Add WXT runtime-registered content script entrypoints for TTS:
  - src/entries/tts.content.ts
  - src/entries-firefox/tts.content.ts
  These build to content-scripts/tts.js but are not listed in manifest.
- Update src/entries/background.ts to inject "content-scripts/tts.js" and keep Firefox MV2 fallback via browser.tabs.executeScript.
- Verified builds for Chrome/Firefox/Edge produce content-scripts/tts.js and no manifest hardcoding for TTS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants