Greasy Fork is available in English.

AtCoder Style Optimizer for Single Display

シングルディスプレイ向けにAtCoderのスタイルを最適化します

2023/04/12のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
  1. // ==UserScript==
  2. // @name AtCoder Style Optimizer for Single Display
  3. // @name:ja AtCoder Style Optimizer for Single Display
  4. // @namespace https://github.com/xe-o
  5. // @version 0.2
  6. // @description Overrides AtCoder styles for single display
  7. // @description:ja シングルディスプレイ向けにAtCoderのスタイルを最適化します
  8. // @author XERO
  9. // @license MIT
  10. // @match https://atcoder.jp/*
  11. // @run-at document-start
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function () {
  16. "use strict";
  17.  
  18. const css = `
  19. .container {
  20. width: 100%;
  21. }
  22. .float-container > #main-container {
  23. box-shadow: none;
  24. }
  25. #main-div.float-container {
  26. background: none;
  27. }
  28. `;
  29.  
  30. const styleNode = document.createTextNode(css);
  31. document.head.insertAdjacentHTML("beforeend", "<style></style>");
  32. document.head.lastElementChild.appendChild(styleNode);
  33. })();