您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a button to your Codeforces tool bar.
// ==UserScript== // @name Zen Mode for Codeforces // @namespace https://subc.rip // @version 2024-02-19 // @description Add a button to your Codeforces tool bar. // @author subcrip // @match https://codeforces.com/contest/* // @icon https://www.google.com/s2/favicons?sz=64&domain=codeforces.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const contest = window.location.pathname.split('/')[2]; let button = document.createElement('li'); let inner = document.createElement('a'); inner.target = '_blank'; inner.href = `https://codeforces.com/contest/${contest}/problems`; inner.innerText = 'ZEN MODE'; button.appendChild(inner); let menu = document.getElementsByClassName('second-level-menu-list')[0]; menu.insertBefore(button, menu.children[2]) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址