Home

Awesome

<p align="center"> <img src="./icon.png" width="64px" /> </p> <h1 align="center">opencc-extension</h1> <p align="center"><img src="./demo.gif" width="50%" /></p> <p align="center"> <a href="#installation"> <img src="https://img.shields.io/badge/Chrome-black.svg?&style=for-the-badge&logo=google-chrome" /> </a> <a href="https://addons.mozilla.org/firefox/addon/opencc"> <img src="https://img.shields.io/badge/Firefox-202340.svg?&style=for-the-badge&logo=firefox-browser" /> </a> </p>

A browser extension that converts text in the current active tab between different Chinese variants.

This extension is powered by opencc-js, which is a JavaScript API wrapper around the great OpenCC project.

Most of the variants supported by OpenCC are supported:

[!NOTE] Only Chrome and Firefox are tested. Other browsers may also work but are not guaranteed to.

Features

See usage for more ways to convert text.

Installation

<a href="https://addons.mozilla.org/firefox/addon/opencc"> <img src="https://user-images.githubusercontent.com/585534/107280546-7b9b2a00-6a26-11eb-8f9f-f95932f4bfec.png" /> </a>

This extension will soon be available on Chrome Web Store.

Usage

Specify the language settings in the extension popup.

<table><tr><td> <strong>Origin</strong> → <strong>Target</strong> </td></tr></table> <p align="center"> <img src="./demo.gif" width="40%" /> <img src="./auto.gif" width="40%" /> </p> <p align="center"> <sub><strong>Left:</strong> One Click</sub> <br> <sub><strong>Right:</strong> Auto Mode</sub> </p>

When auto mode is enabled, a grey badge with the letter A appears on the corner of the extension icon.

All text in the webpage of the current active tab is converted whenever it loads or is updated.

[!NOTE] For performance reason, auto mode will not convert text on webpages which explicitly specify their lang attributes to be languages other than zh in their HTML documents.

<p align="center"> <img src="./select.gif" width="40%" /> <img src="./textbox.gif" width="30%" /> </p> <p align="center"> <sub><strong>Left:</strong> Convert Text Selection on Webpage</sub> <br> <sub><strong>Right:</strong> Convert Any Text in Text Box</sub> </p>

Credits


<p align="center"> <sub><strong>~ crafted with ♥︎ by tnychn ~</strong></sub> <br> <sub><strong>MIT © 2024 Tony Chan</strong></sub> </p>