Skip to content

embeddedsamurai/DeepLopener_PRO

Repository files navigation

DeepLopener_PRO

日本語解説記事に日本語で詳しくインストール方法や使用方法を書いているのでこちらを読んでください.
How to install (YouTube)
How to use (YouTube)

You can launch DeepL (https://www.deepl.com) through this Google chrome extension and replace the texts that you want to translate with translation results keepking the original style.
On pdf, this extension displays a frame showing translated sentences.
This is a whole page translatable GoogleChrome extension that uses DeepL Pro API!

Install from Chrome Web Store

https://chrome.google.com/webstore/detail/deepl-opener-pro/almdndhiblbhbnoaakhgefcpmbaoljde

Install from GitHub

  • Move chrome://extensions.
  • Ensure that the "Developer mode" checkbox in the top right-hand corner is checked.
  • Download DeepLopener_PRO.zip from

https://github.com/T3aHat/DeepLopener_PRO/raw/main/DeepLopener_PRO.zip

  • Drag-and-drop DeepLopener_PRO.zip to chrome://extensions.

Cautions

To use this extension, please sign in to Chrome and sync turns on. If you do not sign in or sync turns off, you will get an error like
Error in response to storage.get: Error: Invocation of form identity.getProfileUserInfo(null, function) doesn't match definition identity.getProfileUserInfo(function callback).
syncon.png

Usage

(1) 【transition mode】
Right click on the text you want to translate → Click on DeepL:selected_text.
(2) 【layout-oriented replacement mode】
Click the icon icon24.png in the right-hand corner and move the cursor and right-click to select the text you want to translate or click to cancel to select.
(3) 【text-oriented replacement mode】
With the text to be translated selected, press Ctrl+X (Command+X on mac) twice within 1 second or click on the icon icno24.png that appears after selecting the text.
(4) 【PDF mode】
On PDF, select the text you want to translate and right-click on the text and click on PDF-DeepL:selected_text.

(1)【transition mode】
openDeepL.gif
Move to https://www.deepl.com/translator#ja/en/selected_text

(2)【layout-oriented replacement mode】
layout-oriented.gif
The selected frame will be translated on layout-oriented replacement mode keeping the original style.
If you click the icon icon24.png in the right-hand corner and select Translate this page!, the whole page contents will be translated like below.
pagetranslate.gif

(3)【text-oriented replacement mode】
text-oriented.gif
The selected text is highlighted in red first. After traslation , it turns yellow.
Right-click on the translation to display the original text.If you do it again, the letters will be toggled back to translation.
It is recommended to use this mode separately from the layout-oriented replacement mode because the original layout will be destroyed.

(4)【PDF mode】
pdfmode.gif
For sites whose MIME type is application/pdf (local PDF files available!), the transition mode changes to PDF mode and the other modes are disabled.
You can move the translation frame around freely in Drag-and-Drop, and right-clicking on the translation result frame will remove it.

Options

You can change the language of the translated text by changing this setting.
To change the setting, please right click the icon icon24.png in the right-hand corner and select Options.
(Default: Target : English(American))
open_options.png
options.png
Translation icon
When "Enable", icon24.png will be displayed on the web page.
(Default:"Enable")

HoverText
hover2.gif
When "Enable", the original text is displayed under the translation (and vice versa) on text-oriented replacement mode.
(Default:"Enable")

免責事項(Disclaimer)

  • 本拡張機能は非公式です.問題がある場合は即公開停止するので,連絡してください.また,いかなる場合も,本拡張機能の利用に起因した損害に対して一切の責任と義務を負いません.
  • 特に,ページ翻訳は大量のcharactersを送信する可能性があるので十分に注意して実行してください.
    意図しない挙動を起こしても一切責任を負いません.
    DeepL PROを契約する際にAPI使用額上限を低めに設定することを強く推奨します.
  • 脆弱性によりAPIの秘密鍵等が流出する可能性があります. 使用する場合はリスクを考慮したうえで自己責任で使用してください.ソースコードの挙動を理解できない場合は使用しないでください. 開発者は一切責任を負いません.
  • 定期的に身に覚えのないAPI使用履歴がないかご利用状況を確認してください(月一で確認を促す警告が表示されます).
  • 開発者はド素人なので,特にAPI鍵の保存方法に関するアドバイスを頂けると幸いです.