Select text. A purple mote appears. Hover it. Streamed Chinese translation via any OpenAI-compatible API.
Release .xpi is unsigned. Regular Firefox blocks permanent install of unsigned extensions (not verified / could not be verified for use in Firefox). Use one of the paths below.
Works on regular Firefox. Survives page reloads; removed when Firefox restarts.
- Clone this repo
- Open
about:debugging#/runtime/this-firefox - Load Temporary Add-on…
- Select
manifest.json
- Install Firefox Developer Edition or Nightly
about:config→ setxpinstall.signatures.requiredtofalse- Download
mote-*.xpifrom Releases about:addons→ gear → Install Add-on From File…
Needs Mozilla Add-on signing. Not automated in this repo yet.
# requires AMO API credentials
npx web-ext sign \
--api-key "$AMO_JWT_ISSUER" \
--api-secret "$AMO_JWT_SECRET" \
--channel unlistedThen install the signed .xpi on regular Firefox.
about:addons → mote → Preferences
| Field | Example |
|---|---|
| Base URL | https://api.openai.com/v1 |
| API Key | sk-… |
| Model | gpt-4o-mini |
- Select text on any page → purple mote near the selection
- Hover the mote → bubble expands, translation streams in
- Select / copy the translation freely
- Click elsewhere or press
Escto dismiss
POST {baseUrl}/chat/completions
Authorization: Bearer {apiKey}
stream: true
Trailing / on baseUrl is stripped. If the path does not end with /vN, /v1 is appended.
MIT