Greasy Fork is available in English.

AtCoder_CustomTest_Run_Shortcut

You can run by using Ctrl + Enter in Custom Test of AtCoder

Fra 30.10.2022. Se den seneste versjonen.

// ==UserScript==
// @name           AtCoder_CustomTest_Run_Shortcut
// @name:ja        AtCoderカスタムテスト実行ショートカット  
// @namespace      https://greasyfork.org/ja/users/570127
// @version        0.1.9
// @description    You can run by using Ctrl + Enter in Custom Test of AtCoder
// @description:ja AtCoderのコードテストにおいてCtrl+Enterで実行ができるようになります。
// @author         universato
// @grant          none
// @match          https://atcoder.jp/contests/*/custom_test
// @match          https://atcoder.jp/contests/*/custom_tets*
// @license        MIT
// @supportURL     https://twitter.com/universato
// ==/UserScript==

const run_button = document.querySelector('a.btn.btn-primary');
if(run_button.innerText.match(/^(Run|実行)$/)){
    run_button.innerText += ' (Ctrl + Enter)';

    (function() {
      document.addEventListener('keydown', function (event) {
          if ((event.ctrlKey || event.metaKey) && event.key === 'Enter'){
              run_button.click();
          }
      });
    })();
}