AtCoderHideScore

Hide the score section of a task statement on AtCoder.

2022-02-13 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

  1. // ==UserScript==
  2. // @name AtCoderHideScore
  3. // @namespace https://github.com/kagemeka
  4. // @version 0.1.0
  5. // @description Hide the score section of a task statement on AtCoder.
  6. // @author Hiroshi Tsuyuki
  7. // @match https://atcoder.jp/contests/*/tasks/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. window.onload = function() {
  14. console.log("test hidden");
  15. const taskSection = document.getElementById("task-statement");
  16. let section = taskSection.getElementsByTagName("p")[0];
  17. section.style.display = "none";
  18. console.log(section);
  19. }