您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将Vjudge的背景图片更改为必应的每日一图
当前为
// ==UserScript== // @name Vjudge背景替换 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 将Vjudge的背景图片更改为必应的每日一图 // @author LLDQ // @match https://vjudge.net/* // @grant none // ==/UserScript== (function() { 'use strict'; // 设置背景图片的URL const backgroundImageUrl = 'https://bing.img.run/uhd.php'; // 创建一个样式元素 const style = document.createElement('style'); style.type = 'text/css'; // 设置背景图片样式 style.innerHTML = ` body { background-image: url('${backgroundImageUrl}') !important; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; } `; // 将样式元素添加到文档的head中 document.head.appendChild(style); })();