OMC Translator

Load translations for Online Math Contest. / OMCの翻訳を表示します。

当前为 2025-06-18 提交的版本,查看 最新版本

作者
yuchan
评分
0 0 0
版本
1.1.0
创建于
2025-06-05
更新于
2025-06-18
大小
8.3 KB
许可证
MIT
适用于

OMC Translator

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


Main Features

  • Loads and displays translated HTML content from GitHub on OMC pages
  • Language selector in the top-right navigation bar
  • Automatically translates ongoing contest problems and solutions

Notes

  • It may take several seconds to a few minutes for problems and solutions in ongoing contests to be translated.
  • The Announcements section is not translated.
  • User-submitted solutions are translated to some extent, but not all are guaranteed to be updated. Also, edits to user-submitted content after publication are not reflected.

Supported Pages


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. Translations will automatically be applied to the content

How to Switch Languages

  1. Click the “Language: English 🇺🇸” (or similar) in the top-right navigation bar
  2. Choose your preferred language from the dropdown list
  3. The page will automatically reload and display the selected translation

Want to Contribute?

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

Currently Supported Languages

  • Japanese
  • English

Translated Content

  • All problems and solutions from both ongoing and completed contests
  • All user-submitted solutions written before or on 2025/6/16
  • Solutions that were present when the contest ended
  • Almost all Japanese words and phrases used on the site

Not Yet Translated (may be supported in the future)

  • Announcements section
  • Problems and solutions for contests not yet started
  • Recently posted or edited user-submitted solutions

OMC Translator

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


主な機能

  • OMC ページに、GitHub 上の翻訳 HTML を読み込んで表示します
  • 画面右上のナビゲーションバーで言語選択ができます
  • 開催中の問題文/解説文を自動的に翻訳処理します

注意

  • 開催中コンテストの問題文/解説文の翻訳処理には数十秒から数分ほど遅延が生じる可能性があります
  • Announcementの翻訳処理はできません。
  • ユーザー解説の翻訳はある程度は行いますが、全て更新するわけではありません。また、ユーザー解説が編集されても、その編集は対応できません。

対象ページ


言語切り替えの方法

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

使い方

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

貢献したい方へ

  • バグ報告や追加して欲しい機能等あれば@yuyu_0persentまでご連絡ください
  • いくつかの問題/解説ページでは

現在設定可能な言語

  • 日本語
  • 英語

翻訳される内容

  • 開催中の常設コンテストの問題文
  • 終了済みの全てのコンテストの問題/公式解説
  • 2025/6/16までに書かれた全てのユーザー解説
  • コンテストが終わった時点で書かれていたユーザー解説
  • ほぼ全ての日本語で書かれた単語/文章

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

  • announcementsの内容
  • 開催前のコンテストの問題文/解説文
  • 直近に書かれた/編集されたユーザー解説
  • 21時開始でないコンテストの問題文/解説文