freetalk-chrome-extension

FreeTalk Dictionary Chrome Extension

A Chrome extension that provides instant word definitions when you double-click any word on a webpage.

Features

Development

Prerequisites

Installation

npm install

Building

Build the extension for production:

npm run build

This will create a build/ directory with all the extension files ready to load into Chrome.

Loading the Extension in Chrome

  1. Build the extension using npm run build
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable β€œDeveloper mode” in the top right
  4. Click β€œLoad unpacked” and select the build/ directory

Project Structure

β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ background/     # Background service worker
β”‚   β”œβ”€β”€ content/        # Content script (runs on web pages)
β”‚   └── assets/         # Images and static assets
β”œβ”€β”€ public/             # Static files copied to build
β”‚   β”œβ”€β”€ index.html      # Extension popup HTML
β”‚   β”œβ”€β”€ popup.js        # Popup functionality
β”‚   β”œβ”€β”€ popup.css       # Popup styles
β”‚   └── manifest.json   # Extension manifest
β”œβ”€β”€ build.js            # Build script using esbuild
└── package.json

Tech Stack

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

See LICENSE file for details.