雨云控制台魔改 使用油猴(篡改猴)实现
功能:修改雨云背景,修改整站字体
需要的字体:萝莉体
https://www.alipan.com/s/5DGDDP9RCp9
提取码: 2rg0
————————————————————————————————————
代码:
// ==UserScript==
// @name 雨云控制台魔改
// @namespace 雨云控制台魔改
// @version 1.1
// @description 雨云控制台魔改
// @author 原作者:WYH2004 魔改:御坂网络
// @match http*://app.rainyun.com/*
// @icon https://www.rainyun.com/favicon.ico
// @grant none
// @require https://cdn.bootcdn.net/ajax/libs/jquery/2.2.4/jquery.min.js
// ==/UserScript==
var link = "http://pic.rmb.bdstatic.com/bjh/ebe942a9de49856f389c65f25a338335.png";//背景图片链接(尽量使用16:9的图片,此处默认使用本人自己的图片api)
(function() {
$("body:first").removeClass("bg_img1");
$("body:first").removeClass("bg_img2");
$("body:first").removeClass("bg_img3");
document.body.class = "index bg"
document.body.style = "background: url(" + link +") no-repeat center center fixed;background-size:cover;background-size:100% 100%";
})();
(function() {
// 替换为你想要的字体,例如 'Arial', 'Times New Roman', 等等
var newFont = 'loli';
// 延迟修改字体样式,确保样式被应用
setTimeout(function() {
// 获取页面中所有元素
var allElements = document.getElementsByTagName('*');
// 遍历所有元素并更改字体
for (var i = 0; i < allElements.length; i++) {
allElements[i].style.fontFamily = newFont;
}
}, 1000); // 1000毫秒延迟,可以根据需要调整
})();