您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
hide single problem tag on Codeforces
- // ==UserScript==
- // @name hide single problem tag on CF
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description hide single problem tag on Codeforces
- // @author ouuan
- // @match https://codeforces.com/*
- // @match https://codeforc.es/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var cur = 0;
- var tags, btn, hint;
- function change() {
- if (cur ^= 1) {
- tags.style.display = 'block';
- hint.style.display = 'none';
- btn.innerText = '▲';
- } else {
- hint.style.display = 'block';
- tags.style.display = 'none';
- btn.innerText = '▼';
- }
- }
- var boxes = document.querySelectorAll('.roundbox.sidebox');
- for (var box of boxes) {
- if (box.innerText.match('Problem tags')) {
- tags = box.children[3];
- tags.style.display = 'none';
- hint = document.createElement('span');
- hint.innerText = 'Tags are hidden.';
- hint.style.padding = '0.5em';
- hint.style.display = 'block';
- box.appendChild(hint);
- btn = document.createElement('span');
- btn.style.cursor = 'pointer';
- btn.innerText = '▼';
- btn.onclick = change;
- box.children[2].appendChild(btn);
- }
- }
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址