CheckScore for 2026

学部別合否判定サイトの2026年度をはやく見たい人のためのスクリプトです

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         CheckScore for 2026
// @namespace    http://tampermonkey.net/
// @version      2026-04-25
// @description  学部別合否判定サイトの2026年度をはやく見たい人のためのスクリプトです
// @author       nauclhlt
// @match        https://copynight.net/sites/CheckScore
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const button = document.createElement('button');
    button.innerText = '書き換え';
    
    Object.assign(button.style, {
        position: 'fixed',
        top: '20px',
        left: '20px',
        zIndex: '9999',
        padding: '10px 20px',
        backgroundColor: '#007bff',
        color: 'white',
        border: 'none',
        borderRadius: '5px',
        cursor: 'pointer',
        boxShadow: '0 2px 5px rgba(0,0,0,0.3)',
        fontSize: '14px',
        fontWeight: 'bold'
    });

    button.addEventListener('click', () => {
        document.body.appendChild(button);

        const oldRikei = [487.75, 603.8,  653.45, 776.12, 942.5,  568.33, 551.23, 636.9,  648.45, 665.57, 658.61, 707.52, 633.82, 661.55];
        const newRikei = [454.00, 523.18, 555.62, 730.25, 876.62, 518.50, 512.06, 581.20, 596.32, 615.33, 602.15, 645.49, 581.15, 629.98];

        const oldBun = [510.82, 497.79, 571.08, 568.38, 552.75];
        const newBun = [530.50, 488.25, 564.66, 558.08, 555.75];

        let panel = document.getElementsByClassName("v-col-sm-8 v-col-md-6 v-col-lg-5 v-col-xl-4 v-col-12")[0];
        let ps = panel.children;
        let rikei = ps.length === 15;
        for (let i = 0; i < ps.length; i++)
        {
            if (ps[i].textContent.startsWith('('))
            {
                continue;
            }

            let text = ps[i].textContent;
            let ni = text.indexOf('に');
            let ten = text.indexOf('点');
            let de = text.indexOf('で');
            let delta = parseFloat(text.substring(ni + 1, ten));

            if (rikei)
            {
                delta += oldRikei[i - 1];
                delta -= newRikei[i - 1];
            }
            else
            {
                delta += oldBun[i - 1];
                delta -= newBun[i - 1];
            }


            delta = Math.round(delta * 100) / 100.0;
        
            let result = delta >= 0 ? '合格💮' : '不合格❌';

            let newtext = text.substring(0, ni + 1) + (delta >= 0 ? '+' : '') + delta.toString() + text.substring(ten, de + 1) + result;

            ps[i].textContent = newtext;
        }
        
        document.body.removeChild(button);
    });

    document.body.appendChild(button);
})();