Item logo image for BeforeTranslate

BeforeTranslate

ExtensionAccessibility
Item media 1 (screenshot) for BeforeTranslate

Overview

翻訳前にコードタグを整形します。

BeforeTranslate — 翻訳前にページを整えて、崩れない翻訳結果を得る拡張機能 ■ できること 1. 訳してほしくない箇所を保護する <samp> 要素、GitHub のファイル名・パンくず・ファイルツリー・ディレクトリ一覧などを翻訳対象から除外します。リンクだけのリストや1単語だけの項目も保護します。 2. コードブロック内のコメントだけは訳す コードは保護したまま、その中のコメント(#、//、--、<!-- など)の本文だけを翻訳対象に戻します。シンタックスハイライトが付いていないコードブロックでも、言語を推定してコメント行を見つけます。シェバン(#!/bin/sh)や記号だけの行は保護したままです。 3. インラインコードを整形する(手動実行) 本文・リスト・表の中にある <code> を、前後に空白を加えたプレーンテキストに置き換えます。これにより翻訳エンジンが不自然な改行を入れなくなり、元のレイアウトを保ったまま翻訳されます。 1 と 2 はページを開いた時点で自動的に働きます。3 は右クリックメニューまたはショートカットキーで実行します。 ■ 対応サイト すべてのウェブサイトで動作します。 ■ プライバシー ・外部サーバーへの通信は一切行いません ・閲覧内容、入力内容、個人情報を収集・送信しません ・保存するのはユーザーが設定したショートカットキーのみです ■ 権限について ・すべてのサイトへのアクセス: どのページでも翻訳前の調整を行うために必要です。ページの内容を読み取って外部へ送ることはありません。 ・contextMenus: 右クリックメニューに項目を追加するために使用します。 ・scripting: 整形を手動実行する際にスクリプトを実行するために使用します。 ・storage: ショートカットキーの設定を保存するために使用します。 ■ オープンソース ソースコードは GitHub で公開しています。 https://github.com/rowicy/before-translate

Details

  • Version
    1.3.0
  • Updated
    October 25, 2026
  • Offered by
    rowicy
  • Size
    19.97KiB
  • Languages
    日本語
  • Developer
    Email
    riiimparm@rowicy.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

Manage extensions and learn how they're being used in your organization
The developer has disclosed that it will not collect or use your data.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps