🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

浏览器背景

修改浏览器背景,请自行修改图片链接

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         浏览器背景
// @namespace    https://viayoo.com/
// @version      0.1
// @description  修改浏览器背景,请自行修改图片链接
// @author       呆毛飘啊飘2171802813
// @run-at       document-start
// @match        https://*/*
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_registerMenuCommand
// ==/UserScript==

(function() {

var tpurl = 'https://img.xjh.me/img/62508146_p0.jpg';
//修改图片url就好了
var viestyle = document.createElement("style");
viestyle.type = "text/css";
GM_registerMenuCommand("亮色调",() => {GM_setValue('Vie背景',1);});
GM_registerMenuCommand("暗色调",() => {GM_setValue('Vie背景',4);});
var k = GM_getValue('Vie背景',1);
if(k==1){
viestyle.innerHTML='*{background-color:rgba(0,0,0,0)!important;}#app,strong,i,b,th,tbody,small,blockquote,label,html,ul,ol,form,article,article[class],footer,footer[class],header,header[class],aside,li,span,nav,main,tr,td,table,body:after,body:before,div:after,div:before,div[class]:after,div[class]:before{background:rgba(0,0,0,0)!important;}body{background-size: contain;background-image: url("'+tpurl+'");!important;}input,div,h1,h2,h3,h4,h5,h6,dd,dl,section{background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:#dddddd!important;}a:not([style]){background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:rgb(156,198,255)!important;}input[type="submit"],button{background:rgba(0,0,0,0.3)!important;text-shadow:none!important;color:#fff!important;border-left-color:rgba(255,255,255,0.3)!important;border-top-color:rgba(255,255,255,0.3)!important;border-right-color:rgba(255,255,255,0.3)!important;border-bottom-color:rgba(255,255,255,0.3)!important;}p{background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:#bbb!important;}div#menu.mdui-drawer.mdui-drawer-open,div[id][class][style*="top"],div[id][class][style*="bottom"],div[id][class][style*="z-index"],div[id][class][style*="height"],div[aria-hidden],div[id][class][style*="max-height"]{background-color:rgba(0,0,0,0.8)!important}textarea{background-color: rgba(0,0,0,0.4)!important;}div[class]:not([style]),nav[class],main[class],section[class],aside[class],section[id],aside[id],main[id]{background:rgba(0,0,0,0)!important;box-shadow:rgba(0,0,0,0)0px 0px 0px!important;}pre{background-color:rgba(0,0,0,0.5)!important;}div[class],div[id],h1[class],h2[class],h3[class],h4[class],h5[class],h6[class]{background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:#dddddd}div[style*="max-height"][style*="overflow"]{background-color:rgba(0,0,0,1)!important;}textarea,pre,li{color:#fff!important;}';
}
else{
viestyle.innerHTML='*{background-color:rgba(0,0,0,0)!important;}#app,strong,i,b,th,tbody,small,blockquote,label,html,ul,ol,form,article,article[class],footer,footer[class],header,header[class],aside,li,span,nav,main,tr,td,table,body:after,body:before,div:after,div:before,div[class]:after,div[class]:before{background:rgba(0,0,0,0)!important;}body{background-size: contain;background-image: url("'+tpurl+'");!important;}input,div,h1,h2,h3,h4,h5,h6,dd,dl,section{background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:#222222!important;}a:not([style]){background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:rgb(156,198,255)!important;}input[type="submit"],button{background:rgba(255,255,255,0.3)!important;text-shadow:none!important;color:#000!important;border-left-color:rgba(0,0,0,0.3)!important;border-top-color:rgba(0,0,0,0.3)!important;border-right-color:rgba(0,0,0,0.3)!important;border-bottom-color:rgba(0,0,0,0.3)!important;}p{background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:#bbb!important;}div#menu.mdui-drawer.mdui-drawer-open,div[id][class][style*="top"],div[id][class][style*="bottom"],div[id][class][style*="z-index"],div[id][class][style*="height"],div[aria-hidden],div[id][class][style*="max-height"]{background-color:rgba(255,255,255,0.8)!important}textarea{background-color: rgba(255,255,255,0.4)!important;}div[class]:not([style]),nav[class],main[class],section[class],aside[class],section[id],aside[id],main[id]{background:rgba(0,0,0,0)!important;box-shadow:rgba(0,0,0,0)0px 0px 0px!important;}pre{background-color:rgba(255,255,255,0.5)!important;}div[class],div[id],h1[class],h2[class],h3[class],h4[class],h5[class],h6[class]{background-color:rgba(0,0,0,0)!important;text-shadow:none!important;color:#222222}div[style*="max-height"][style*="overflow"]{background-color:rgba(0,0,0,1)!important;}textarea,pre,li{color:#000!important;}';
}
document.getElementsByTagName('head')[0].appendChild(viestyle);

})();