Atcoder Submit Shortcut

Ctrl + Shift + Enter で提出できるようにする

22.09.2024 itibariyledir. En son verisyonu görün.

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 Submit Shortcut
// @namespace    chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/options.html#nav=9fae7fb4-0496-426b-a189-3aa7e5a7e300+editor
// @license MIT
// @version      2024-09-22
// @description  Ctrl + Shift + Enter で提出できるようにする
// @author       Rac
// @match        https://atcoder.jp/contests/*/tasks/*
// @match        https://atcoder.jp/contests/*/submit
// @match        https://atcoder.jp/contests/*/submit?*
// @match        https://atcoder.jp/contests/*/custom_test
// @grant        none
// ==/UserScript==

(function() {
    document.addEventListener('keydown', (event) => {
        if(event.ctrlKey && event.shiftKey && event.key=='Enter') {
            document.querySelector('.col-sm-5 > .btn-primary').click();
        }
    });
})();