Greasy Fork is available in English.

sample erase

サンプルを消します

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         sample erase
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  サンプルを消します
// @author       imomo
// @match        https://atcoder.jp/contests/*/tasks/*
// @grant        none
// ==/UserScript==

 window.onload = function(){
     var elements = document.getElementsByClassName("lang-ja")[0];
     for(var i = elements.children.length - 1;0<=i;i--){
         if(elements.children[i].className === "io-style")break;
         else elements.removeChild(elements.children[i]);
     }
     elements.appendChild(document.createElement("hr"));
     var alertText = document.createElement("h3");
     alertText.innerHTML="<span style='color: red;'>スクリプトでサンプルを非表示にしています。<br>バチャ終了後このスクリプトをオフにしてください</span>";
     elements.appendChild(alertText);
 }