Skip to content
koalafiedelPublic
forked from ilihh/sugoi-web

About

Chrome extension: translates pages using Sugoi Offline Translation Server or DeepL

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

43 Commits

Folders and files

Repository files navigation

Sugoi-web

Extension for Chromium-based browsers and Firefox to translate Japanese web novels with Sugoi Offline Translation Server (https://www.patreon.com/mingshiba) or DeepL API.

Installation for Chromium-based browsers:

  1. Download the Source code (zip) archive from Releases
  2. Unpack the archive
  3. Open the extensions page (chrome://extensions/)
  4. Enable Developer Mode
  5. Press the "Load Unpacked" button and select a folder with manifest.json

Installation for Firefox:

  1. Download the Source code (zip) archive from Releases
  2. Unpack the archive
  3. Delete manifest.json
  4. Rename manifest-firefox.json to manifest.json
  5. Open extensions page (about:debugging#/runtime/this-firefox)
  6. Press the "Load Temporary Add-on" button and select manifest.json

Using with Sugoi:

  1. Install Sugoi Translator Toolkit
  2. Start Sugoi-Translator-Toolkit from the installed folder
  3. Select Sugoi Translator Offline
  4. The Translate button is now available for use
  5. Starting with Chrome version 142, the browser may ask for permission to access the local network. This is required for connecting to the Sugoi-Translator-Toolkit local server. Chrome will request this permission separately for each domain.

Cross-extension messaging

Messages should be sent from content scripts.

const sugoiWebExtenstionId = "abcdefghijklmnoabcdefhijklmnoabc"; // replace with actual id
const can_translate = await chrome.runtime.sendMessage(sugoiWebExtenstionId, { action: 'canTranslate' });
if (can_translate)
{
	const response = await chrome.runtime.sendMessage(sugoiWebExtenstionId, { action: 'translate' });
}

Supported:

  • syosetu.com
  • kakuyomu.jp
  • pixiv.net/novel

Known Problems:

Error Reason Solution
Sugoi Offline Translation Server is not available. Server not started Start server
Access blocked by AdBlock, Brave Shields, or other similar extensions Temporarily disable those extensions for the current page or add http://127.0.0.1:14366 to the whitelist if possible

About

Chrome extension: translates pages using Sugoi Offline Translation Server or DeepL

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages