VJudge 增强脚本
一个为 Virtual Judge (VJudge) 定制的现代化、美化与性能增强油猴脚本。
点击浏览器 Tampermonkey 插件图标 → 找到并点击右下角 ⚙️ VJudgeBetter 设置,打开即可。
| 设置项 | 说明 |
|---|---|
| 个性全局主题色 | 点击原生的颜色选择器,任意挑选你喜欢的专属色彩。 |
| 代码字体 | 自定义你喜爱的等宽编程字体,支持 JetBrains Mono, Fira Code, Consolas 等(但你先要在本地安装这些字体),可以在下方的自定义输入框中输入你电脑本地安装的小众字体。 |
| 阅读字体 | 全站正文内容、表格及题面(排除数学公式)将统一切换为此阅读字体,支持在下方输入框中手动指定系统内装的特殊字体。 |
| 背景多媒体托管 | 点击或拖拽文件到虚线框内(支持最大 5MB 图片/GIF,或最大 20MB 的 MP4 视频),视频背景将自动开启静音、硬件加速与无限循环播放。 |
| 背景透明度 | 自由拖动百分比滑块(0% - 100%)。 |
Ctrl + S)即可。复制本仓库中 默认分支 的 app.js 完整源码,其它步骤与安装正式版的步骤相同。
本项目基于 MIT License 协议开源。
欢迎随时提交 Issue 和 PR!
A modern Tampermonkey script designed to enhance the aesthetics and performance of Virtual Judge (VJudge).
.jpg, .png, .webp, .gif, .mp3, and .mp4 formats. Includes a one-click reset option to disable the background.Click the Tampermonkey browser extension icon → locate and click ⚙️ VJudgeBetter Settings in the bottom-right corner to open the panel.
| Setting | Description |
|---|---|
| Custom Global Theme Color | Click the color picker to select your own unique theme color. |
| Code Font | Customize your monospaced coding font (e.g., JetBrains Mono, Fira Code, Consolas). Note: You must have these fonts installed locally on your computer. You can also enter the name of any niche font installed on your system in the input box below. |
| Reading Font | Switches the font for body text, tables, and problem descriptions (excluding mathematical formulas) across the site. You can manually specify a custom system font in the input box below. |
| Background Media Upload | Click or drag files into the dashed-line box (supports images/GIFs up to 5MB or MP4 videos up to 20MB). Video backgrounds automatically enable mute, hardware acceleration, and infinite looping. |
| Background Opacity | Adjust the opacity using the percentage slider (0% - 100%). |
Ctrl + S).Copy the full source code of app.js from the repository's default branch. The remaining steps are the same as those for installing the release version.
This project is open-sourced under the MIT License.
Feel free to submit Issues and PRs!