Atcoder Submit Shortcut

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

Ekde 2024/09/22. Vidu La ĝisdata versio.

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

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 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.

(I already have a user script manager, let me install it!)

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

// ==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();
        }
    });
})();