您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide “on test X” suffix in Codeforces verdicts
当前为
// ==UserScript== // @name CF Hide Test Number // @namespace http://tampermonkey.net/ // @version 1.0 // @description Hide “on test X” suffix in Codeforces verdicts // @author SanguineChameleon // @match https://codeforces.com/* // @grant unsafeWindow // @grant GM_addStyle // @run-at document-start // @license MIT // ==/UserScript== (function() { GM_addStyle(` span[class='verdict-format-judged'] { display: none !important; } td[class^='time-consumed-cell'] { font-size: 0px !important; } td[class^='memory-consumed-cell'] { font-size: 0px !important; } `) })(); (function() { 'use strict'; const css = ` .verdict-format-judged, .diagnosticsHint { display: none !important; }`; if (typeof GM_addStyle === 'function') { GM_addStyle(css); } else { const s = document.createElement('style'); s.textContent = css; (document.head || document.documentElement).appendChild(s); } const pluckRE = / on (pre)?test ?\d*$/; function pluck(s) { return s.replace(pluckRE, ''); } const CF = (unsafeWindow || window).Codeforces; if (CF && CF.showMessage) { const _old = CF.showMessage; CF.showMessage = msg => _old(pluck(msg)); } function stripNode(el) { try { const txt = el.childNodes[0]; txt.nodeValue = pluck(txt.nodeValue); } catch {} } document.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('.verdict-rejected span, .verdict-waiting span') .forEach(stripNode); const catcher = (unsafeWindow || window).submissionsEventCatcher; if (catcher && catcher.subscribe) { const channel = catcher.channels[0]; catcher.subscribe(channel, data => { if (data.t === 's') { const sel = `[data-a='${data.d[0]}'] .status-verdict-cell span`; const el = document.querySelector(sel); if (el) stripNode(el); } }); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址