atcoder-standings-lang

AtCoder の順位表に最多提出言語を追加します.uesugi6111 さん作のスクリプトが元ネタです.

Tính đến 10-11-2020. Xem phiên bản mới nhất.

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

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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!)

Tác giả
iilj
Đánh giá
0 0 0
Phiên bản
2020.11.10.0
Đã tạo
10-11-2020
Đã cập nhật
10-11-2020
Kích thước
4 KB
Giấy phép
N/A
Áp dụng cho

概要

AtCoder の順位表で名前の横に使用言語を AC 順に表示します. atcoder-lang の不具合修正とパフォーマンス改善を行ったものです.

元ネタ

uesugi6111 さん作の atcoder-lang が元になっています.

元ネタとの差分

  • 不具合修正
    • 他の userscript と干渉する場合があったため修正
  • パフォーマンス改善
    • Array 上の二分探索 → 最適化された Map へ置換
    • setInterval() を使用したポーリング → MutationObserver を使用した DOM 監視
    • fetch した JSON のデコードが DOM 更新ごとに走らないように修正
  • リファクタリング
    • 上述のパフォーマンス改善に伴ってコードの構造は大きく変えてあります