AtCoder-ngtkanaResult

Turning Judge Results into Ngtkana words.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         AtCoder-ngtkanaResult
// @namespace    http://tampermonkey.net/
// @version      0.1.2
// @description  Turning Judge Results into Ngtkana words.
// @author       Harui
// @match        https://atcoder.jp/*submissions
// @match        https://atcoder.jp/*submissions/me
// @match        https://atcoder.jp/*submissions?f*
// @match        https://atcoder.jp/*submissions/me?f*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // ジャッジステータスについて: https://atcoder.jp/contests/practice/glossary
    var AC_message = "ながたかなは長いですから、天才とお呼びください";
    var WJ_message = "どきどきです";
    var WA_message = "細かいミスにも気づけないエンジニアはどなたですか?(泣)";

    var AC_elements = document.getElementsByClassName("label label-success");
    var WJ_elements = document.getElementsByClassName("label label-default");
    var WA_elements = document.getElementsByClassName("label label-warning");


    for (var i=0; i<AC_elements.length; i++){
        AC_elements[i].innerHTML = AC_message;
    }

    for (i=0; i<WJ_elements.length; i++){
        WJ_elements[i].innerHTML = WJ_message;
    }

    for (i=0; i<WA_elements.length; i++){
        WA_elements[i].innerHTML = WA_message;
    }


})();