Atcoder Shorter Affiliation

AtCoderの順位表の「所属」列をスリムにするUserScript

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Skaber
e6nlaq
Daglige installationer
0
Installationer i alt
2
Bedømmelser
0 0 0
Version
1.0.0
Oprettet
26.04.2026
Opdateret
26.04.2026
Size
12,2 kB
Licens
MIT
Gælder for

AtCoder Shorter Affiliation

AtCoderの順位表の「所属」列をスリムに。

Source: https://github.com/e6nlaq/atcoder-shorter-affiliation


概要

AtCoderの順位表において、所属名が長すぎてレイアウトが崩れたり見づらくなったりするのを防ぐためのユーザースクリプトです。 ac-predictor+所属欄表示で発生する表示崩れへの対策として開発しました。

指定した幅(半角文字基準)を超える所属名を自動的に で省略し、マウスホバー時にフルネームを表示します。

特徴

  • スマートな省略: string-width を使用し、全角/半角を考慮した正確な幅で省略判定を行います。
  • 動的更新に対応: 順位表の読み込みや検索、ページの切り替え時も MutationObserver によって自動的に適用されます。
  • カスタマイズ可能: ブラウザの拡張機能メニュー(Tampermonkey 等)から、省略の基準となる幅(デフォルト: 32)をいつでも変更できます。

インストール

  1. Tampermonkey などのユーザースクリプト管理マネージャーをブラウザにインストールします。
  2. ビルド済みのスクリプトファイルをインストールしてください(dist/atcoder-shorter-affiliation.user.js)。

設定方法

  1. AtCoderの順位表ページ(/contests/*/standings)を開きます。
  2. ユーザースクリプトマネージャーのメニュー(Tampermonkeyのアイコンをクリック)から 「表示幅の設定 (AtCoder Shorter Affiliation)」 を選択します。

  1. 表示したい最大幅(半角基準)を入力して保存してください。

開発者向け

このプロジェクトは vite-plugin-monkey を使用して構築されています。 また、bunはmiseを使って導入してください。

コマンド

# 依存関係のインストール
bun install

# 開発モード (スクリプトの自動更新が有効になります)
bun dev

# ビルド (dist/ にユーザースクリプトを出力)
bun run build

帰属表記

ライセンス

MIT