Greasy Fork is available in English.

AtCoder-ngtkanaResult

Turning Judge Results into Ngtkana words.

As of 09.12.2020. See ბოლო ვერსია.

  1. // ==UserScript==
  2. // @name AtCoder-ngtkanaResult
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.2
  5. // @description Turning Judge Results into Ngtkana words.
  6. // @author Harui
  7. // @match https://atcoder.jp/*submissions
  8. // @match https://atcoder.jp/*submissions/me
  9. // @match https://atcoder.jp/*submissions?f*
  10. // @match https://atcoder.jp/*submissions/me?f*
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // ジャッジステータスについて: https://atcoder.jp/contests/practice/glossary
  18. var AC_message = "ながたかなは長いですから、天才とお呼びください";
  19. var WJ_message = "どきどきです";
  20. var WA_message = "細かいミスにも気づけないエンジニアはどなたですか?(泣)";
  21.  
  22. var AC_elements = document.getElementsByClassName("label label-success");
  23. var WJ_elements = document.getElementsByClassName("label label-default");
  24. var WA_elements = document.getElementsByClassName("label label-warning");
  25.  
  26.  
  27. for (var i=0; i<AC_elements.length; i++){
  28. AC_elements[i].innerHTML = AC_message;
  29. }
  30.  
  31. for (i=0; i<WJ_elements.length; i++){
  32. WJ_elements[i].innerHTML = WJ_message;
  33. }
  34.  
  35. for (i=0; i<WA_elements.length; i++){
  36. WA_elements[i].innerHTML = WA_message;
  37. }
  38.  
  39.  
  40. })();