// ==UserScript== // @name 百度去广告+Moe背景 // @namespace ??? // @version 1.0.5 // @description 建议使用stylus插件加载css,虽然油猴也行 // @author yui // @grant GM_addStyle // @run-at document-start // @match *://*.baidu.com/* // @downloadURL none // ==/UserScript== (function() { let css = ` .FYB_RD { display: none } body:before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -100; background-image: url(https://i0.hdslb.com/bfs/album/18bb3416bc1177f2a98dce92dd02596d29a15226.jpg); background-position: center ; background-size: cover; background-attachment: fixed; background-repeat: no-repeat; opacity: .2 } #head{background: rgba(0,0,0,0);} #form{background: rgba(255, 255, 255, .2);} #rs{opacity: .4} .bdsug{background: rgba(255, 255, 255, .8);} .wrapper_new .sam_newgrid~#page {background-color: rgba(0,0,0,0);} .wrapper_new #foot {background-color: rgba(0,0,0,0);} .wrapper_new #foot #help {background-color: rgba(0,0,0,0);} `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();