AtCoder Scoreboard Pinner

配点表をコンテスト情報の最上部に配置するスクリプト

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name        AtCoder Scoreboard Pinner
// @namespace   https://atcoder.jp/
// @version     0.2
// @description 配点表をコンテスト情報の最上部に配置するスクリプト
// @author      hayatroid
// @license     MIT
// @match       https://atcoder.jp/contests/*
// @exclude     https://atcoder.jp/contests/
// @exclude     /^https:\/\/atcoder\.jp\/contests\/.+?\/.+$/
// @require     https://code.jquery.com/jquery-3.7.1.min.js
// ==/UserScript==

var $ = window.jQuery;

(function () {
    // 配点表を取得
    var table = $("#contest-statement > .lang > .lang-ja table")
        .filter(function () {
            var th = $(this).find("thead > tr > th");
            return th.length === 2 && th.eq(0).text() === "問題" && th.eq(1).text() === "点数";
        });

    if (table.length !== 1) throw new Error("Scoreboard cannot be found.");
    table = table.eq(0);

    // 配点表を複製し、コンテスト情報の最上部に配置
    $("#contest-statement").prepend(table.clone());
})();