AtCoder_submit_keyboard_shortcut

atcoderにおいてCtrl+Enterで提出ができるようになります

  1. // ==UserScript==
  2. // @name AtCoder_submit_keyboard_shortcut
  3. // @version 1.3
  4. // @description atcoderにおいてCtrl+Enterで提出ができるようになります
  5. // @author Osmium_1008
  6. // @license MIT
  7. // @include https://atcoder.jp/contests/*/tasks/*
  8. // @include https://atcoder.jp/contests/*/submit
  9. // @supportURL https://twitter.com/Osmium_1008
  10. // @namespace https://greatest.deepsurf.us/users/251827
  11. // ==/UserScript==
  12. (function() {
  13. document.addEventListener('keydown', function (event) {
  14. if ((event.ctrlKey||event.metaKey)&&event.keyCode==13){
  15. $('#submit').click();
  16. }
  17. }, false);
  18. })();