Skip to content

Repository files navigation

Avoid Google Translate Logo

Avoid Google Translate Website

A simple and efficient browser extension that automatically redirects Google Translate URLs (translate.goog) back to their original source websites.

Features

  • Automatic Redirection: Instantly detects and redirects Google Translate pages to the original URL.
  • Privacy Focused: Only runs on *.translate.goog domains.
  • Simple Control: Toggle the extension on/off directly from the popup.

Requirements

  • Node.js = v22.14
  • pnpm >= v10.13.1

Installation

  1. Clone this repository
  2. Install dependencies:
    pnpm install
  3. Build the extension:
    pnpm build
  4. Load the extension in your browser:
    • Chrome: Go to chrome://extensions/, enable "Developer mode", and click "Load unpacked" -> Select build/chrome-mv3-prod (or similar depending on build output)
    • Firefox: Go to about:debugging, click "This Firefox", and click "Load Temporary Add-on" -> Select build/firefox-mv2-prod

Usage

  1. Click the extension icon to see the status.
  2. Use the toggle button to Enable or Disable the redirection.
  3. When enabled, navigating to any *.translate.goog URL will automatically redirect you to the original site.

Development

  • pnpm dev: Start development server
  • pnpm build: Build extension for production
  • pnpm test: Run the test suite (Vitest)
  • pnpm package: Create a package for distribution

Testing

The project includes a comprehensive test suite using Vitest and React Testing Library.

  • Unit Tests: Located in src/utils/*.test.ts, covering URL redirection logic and settings management.
  • Component Tests: Located in src/*.test.tsx, covering the popup UI and user interactions.

To run the tests:

pnpm test

License

MIT

About

A browser extension that automatically redirects Google Translate URLs (translate.goog) back to their original source websites.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages