您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
啥都没优化,就是让vjudge变得更好看了
当前为
- // ==UserScript==
- // @name vjudge+background
- // @namespace vjudge-plus-v2
- // @version 1.5
- // @description 啥都没优化,就是让vjudge变得更好看了
- // @author axototl (original by Suntra)
- // @match https://vjudge.net/
- // @match https://vjudge.net/*
- // @noframes
- // @icon https://vjudge.net/favicon.ico
- // @run-at document-body
- // @license AGPLv3
- // @grant GM_addStyle
- // @grant GM_registerMenuCommand
- // @grant GM_getValue
- // @grant GM_setValue
- // @run-at document-end
- // ==/UserScript==
- (function() {
- if (navigator.userAgent.includes("Chrome") && performance.getEntries()[0].responseStatus != 200) return;
- // 设置背景
- let back = GM_getValue("background", "https://cdn.luogu.com.cn/images/bg/fe/Day_And_Night_1.jpg");
- GM_registerMenuCommand("设置背景URL", () => {
- back = window.prompt("请输入背景URL", back);
- GM_setValue("background", back);
- window.alert("设置成功,刷新生效");
- location.reload();
- });
- // if(window.location.href.match(/\/problem\/description\/[^\/]+$/)) {
- // console.log("error!!!");
- // GM_addStyle(
- // "dd {background-color: rgba(255,255,255,70%) !important;border-radius: 0.25rem !important;}"
- // );
- // } else
- {
- GM_addStyle("body {background: #f0f0f0 url("+back+") no-repeat center top fixed;background-size: 100% 100%;-moz-background-size: 100% 100%;}");
- document.body.innerHTML = "<nav style='height: 60px'></nav>" + document.body.innerHTML;
- }
- GM_addStyle(
- ".navbar {border-radius:0rem;background-color: rgba(0,0,0,65%) !important;position: fixed;top: 0;left: 0;z-index: 1000;width: 100%;}"+
- "::-webkit-scrollbar {display: none;}"+
- "#prob-ads {display: none;}"+
- "#img-support {display: none;}"+
- ".card, .list-group-item, .btn-secondary, .page-link, .page-item.disabled .page-link, .dropdown-menu {background-color: rgba(255,255,255,65%);}"+
- ".modal-content {background-color: rgba(255,255,255,90%);}"+
- ".form-control {background-color: rgba(255,255,255,50%);}"+
- ".tab-content {background-color: rgba(255,255,255,50%);border: 2px solid #eceeef;border-radius: 0.25rem;padding: 20px;}"+
- "a:focus, a:hover {color: #ff4c8c;text-decoration: underline;}"
- );
- document.querySelector("body > div.body-footer").innerHTML += '<p style="color: #3fb98b">Theme powered by vjudge+background (original by <a href="https://github.com/dffxd-suntra/vjudge-plus">vjudge+</a>)</p>';
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址