Greasy Fork 还支持 简体中文。

AtCoderScoreHider

AtCoder(beta.atcoder.jp)の日本語、英語版の配点を全て隠します。

目前為 2018-09-04 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name           AtCoderScoreHider
// @namespace  https://github.com/task4233
// @version        1.0.6
// @description  AtCoder(beta.atcoder.jp)の日本語、英語版の配点を全て隠します。
// @author         Mister task4233
// @grant           none
// @license         MIT
// @include         /^https?://beta\.atcoder\.jp\/contests\/*
// ==/UserScript==

// ---------------------------------------------------------------------------------------------
// 変更したい場合はここをいじってください
var display_score = '???';//            点数の代わりに置換される文字列
var problem_page = true;//           問題ページで表示するか否か
var top_page = true;//                  トップページで表示するか否か
var source_code_page = true;//    ソースコードページで表示するか否か
var submit_list_page = true;//       提出コード一覧ページで表示するか否か
// ---------------------------------------------------------------------------------------------

var i;

// 点数表示取得(問題ページ)
var problem_page_scores=document.querySelectorAll('#task-statement > span > span > p > var');
// 点数表示取得(トップページ)
var top_page_scores=document.querySelectorAll('.span4 > .table > tbody > tr > td');
// 点数表示取得(ソースコードページ)
var submit_page_scores=document.querySelectorAll('.panel > table > tbody > tr > td');
// 点数表示取得(提出コード一覧ページ)
var submit_list_page_scores=document.querySelectorAll('.table-responsive > table > tbody > tr > td');

if (problem_page && problem_page_scores.length>0){
  for(i=0;i<2;++i){
    problem_page_scores[i].innerText=display_score;
  }
}
if (top_page && top_page_scores.length > 0){
  for(i=1;i<top_page_scores.length;i+=2){
    top_page_scores[i].innerText = display_score;
  }
}
if (source_code_page && submit_page_scores.length > 0){
  submit_page_scores[4].innerText = display_score;
}

// エラー配列
var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
// contains関数
let contains = (str) => {
  return (errors.indexOf(str) >= 0);
}

if (submit_list_page && submit_list_page_scores.length > 0){
  for(i=4;i<submit_list_page_scores.length; i+=10) {
     submit_list_page_scores[i].innerText = display_score;
    if(contains(submit_list_page_scores[i + 2].innerText)) {
       i -= 2;
    }
  }
}