OMC Translator

Load translations for Online Math Contest problems and editorials. / OMCの問題文および公式解説文の翻訳を表示します。

Auteur
yuchan
Installations quotidiennes
0
Installations (total)
0
Notes
0 0 0
Version
1.0.0
Créé
05/06/2025
Mis à jour
05/06/2025
Taille
4,81 ko
Licence
MIT
S'applique à

OMC Translator は、Online Math Contest(OMC)の問題文・解説ページに対して GitHub 上の翻訳ファイルを自動的に読み込み、ブラウザ上で表示を切り替えられる Userscript です。
Tampermonkey や Violentmonkey を使って導入できます。


主な機能

  • OMC 問題ページと解説ページに、GitHub 上の翻訳 HTML を読み込んで表示
  • 画面右上のナビゲーションバーで言語選択
  • 翻訳が存在しない場合は「未翻訳」メッセージを表示

対象ページ


言語切り替えの方法

  1. ページ上部の「Language: 日本語 🇯🇵」などの表示をクリック
  2. 表示された言語一覧から任意の言語を選択
  3. ページが自動でリロードされ、該当言語の翻訳が読み込まれます

使い方

  1. Tampermonkey などの Userscript マネージャーをインストール
  2. このスクリプトを Greasy Fork から追加
  3. OMC のコンテストページにアクセス
  4. 問題文や解説の翻訳が自動で差し替え表示されます(翻訳が存在する場合)

設定情報

  • 言語設定は localStorageomcLang に保存されます
  • 初期値は en(英語)ですが、対応言語は変更可能です

貢献したい方へ

  • バグ報告や追加して欲しい機能等あれば@yuyu_0persentまでご連絡ください

設定可能な言語

  • 日本語
  • 英語

翻訳される内容

  • (最低でも)OMC251以前の全てのコンテストの問題
  • (最低でも)OMC251以前の全てのコンテストの公式解説

翻訳されない内容(そのうちやるかも)

  • 全てのユーザー解説
  • 問題/解説以外の日本語で書かれた単語および文章

OMC Translator

OMC Translator is a userscript that automatically loads translation files from GitHub and displays them on the Online Math Contest (OMC) problem and solution pages. It can be installed using Tampermonkey or Violentmonkey.


Main Features

  • Loads and displays translated HTML content from GitHub on OMC problem and solution pages
  • Adds a language selector in the top-right navigation bar
  • Shows a "Not yet translated" message when no translation is available

Supported Pages


How to Switch Languages

  1. Click the "Language: 日本語 🇯🇵" (or similar) option at the top of the page
  2. Select your preferred language from the list
  3. The page will reload and load the translation in the selected language

How to Use

  1. Install a userscript manager such as Tampermonkey
  2. Add this script from Greasy Fork
  3. Visit any OMC contest page
  4. The problem statements and solutions will automatically be replaced with translations (if available)

Configuration Details

  • The selected language is saved in localStorage under the key omcLang
  • Default language is en (English), but other supported languages can be chosen

For Contributors

  • For bug reports or feature requests, please contact @yuyu_0persent

Supported Languages

  • Japanese
  • English

Content That Will Be Translated

  • All contest problems up to (at least) OMC251
  • All official solutions up to (at least) OMC251

Content Not Yet Translated

  • All user-submitted solutions
  • Any Japanese words or phrases outside of problems/solutions

Let me know if you'd like this packaged as a README file or formatted for a specific site like Greasy Fork.