Greasy Fork

Greasy Fork is available in English.

hao123萌化自动切换背景

hao123萌化自动切换背景,几千张壁纸随机切换

目前为 2020-07-11 提交的版本,查看 最新版本

// ==UserScript==
// @name         hao123萌化自动切换背景
// @namespace    https://www.acy.moe
// @supportURL   https://www.acy.moe
// @version      0.3
// @description  hao123萌化自动切换背景,几千张壁纸随机切换
// @author       NEET姬
// @match        https://www.hao123.com
// ==/UserScript==

(function() {var css = "";
if (false || (document.domain == "www.hao123.com" || document.domain.substring(document.domain.indexOf(".www.hao123.com") + 1) == "www.hao123.com"))
	css += [
		"/*新版hao123,旧版在代码2*/",
		"  .sk_skin-color-green",
		"  {",
		"    width: 100%;",
		"/*url(网址)---网址为背景图地址,把图片上传到任意图床,然后把图片链接黏贴到这里即可*/",
		"    background: url(https://www.accy.top/api/4) !important;",
		"    background-attachment: fixed !important;",
		"    background-position: center center !important;",
		"    background-repeat: no-repeat !important;",
		"    background-size: cover !important;",
		"  }",
		"",,
		"  #sites2_wrapper  >*",
		"  {",
		"/*调整中间那个框的边框圆角弯度*/",
		"    border-radius: 15px !important;",
		"/*调整中间那个框内的颜色/透明度*/",
		"    background: rgba(255,255,255,.4) !important;",
		"/*调整中间那个框的渐变时间*/",
		"    transition: background-color 0.3s !important;",
		"/*调整中间框内的整体内容位置(那个0调得越高,显示的行数越多)*/",
		"    padding: 50px 0px 50px 55px !important;",
		"/*调整中间那个框的阴影*/",
		"    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 15px 2px !important;",
		"/*调整中间那个框的左右位置*/",
		"    margin-left: 65px !important;",
		"/*调整中间那个框的上下位置*/",
		"    margin-top: 105px !important;",
		"/*调整中间那个框的高度位置*/",
		"    height: 90px !important;",
		"/*调整中间那个框的宽度位置*/",
		"    width: 950px !important;",
		"  }",
		"",
		"  #sites2_wrapper >*:hover",
		"  {",
		"/*跟上面那个关联,调整鼠标移动到窗口内的颜色/透明度*/",
		"    background: rgba(255,255,255,.9) !important;",
		"  }",
		"",
		"  #sites2_wrapper .js_manage.site-manage",
		"  {",
		"/*调整\"添加地址\"按钮的图片和大小位置*/",
		"    content: url(https://i.loli.net/2018/11/23/5bf75c0bddd1f.png);",
		"    background: rgba(255,255,255,0) !important;",
		"    height: 20px !important;",
		"    width: 20px !important;",
		"    margin: 135px 10px!important;",
		"    visibility: visible !important;",
		"  }",
		"",
		"  .i-input",
		"  {",
		"/*调整邮箱框颜色/透明度*/",
		"    background: rgba(255,255,255,0.6) !important;",
		"  }",
		"",
		"  .g-ib.textWrapper.shadow-hook.wrapper-hook",
		"  {",
		"/*调整百度搜索框颜色/透明度*/",
		"    background: rgba(255,255,255,0.6) !important;",
		"  }",
		"",
		"",
		"/*下面是隐藏其余内容,请勿乱调整*/",
        ".coolsites-wrapper",
		"  {",
		"    display: none !important;",
		"  }",
		".navrecommend-hjw",
		"  {",
		"    display: none !important;",
		"  }",
		".box-famous-resource",
		"  {",
		"    display: none !important;",
		"  }",
		"#topbeWrapper",
		"  {",
		"    display: none !important;",
		"  }",
		".topbe-wrapper",
		"  {",
		"    display: none !important;",
		"  }",
		"  #box-toplist0",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  #box-toplist1",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .g-bigrender",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .rightTip",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .hot-num",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .shortcut-box",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .skinbtn__link",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .hotsearch-box",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .siye",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .skinbtn",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  #bottom-be",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .popup-site-cms.js_psite-cms",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .g-ib.layout-left",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .hao123-footer",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .siye-link",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .close-btn",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  #notice",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  #hao123-govsite",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .common-sites",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .split-line",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  #sites_cover",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  .sethome",
		"  {",
		"    display: none !important;",
		"  }",
		"",
		"  #footer",
		"  {",
		"    background: rgba(255,255,255,0) !important;",
		"    border-color: rgba(255,255,255,0) !important;",
		"  }",
		"",
		"  .sites2-wrapper.g-ib",
		"  {",
		"    background: rgba(255,255,255,0) !important;",
		"    border-color: rgba(255,255,255,0) !important;",
		"  }",
		"",
		"  .popup-site-shadow",
		"  {",
		"    margin-left: -70px !important;",
		"  }",
		"",
		"  .header",
		"  {",
		"    background: rgba(255,255,255,0) !important;",
		"    border-color: rgba(255,255,255,0) !important;",
		"  }",
		"",
		"  #topColumn",
		"  {",
		"    background: rgba(255,255,255,0) !important;",
		"    border-color: rgba(255,255,255,0) !important;",
		"  }",
		"",
		"  .tabs-toggle.tabs-toggle-hook",
		"  {",
		"    background: rgba(255,255,255,0) !important;",
		"  }",
		"",
		"  .textInput.input-hook",
		"  {",
		"    background: rgba(255,255,255,0) !important;",
		"  }"
	].join("\n");
             if (false || (document.domain == "www.hao123.com" || document.domain.substring(document.domain.indexOf(".www.hao123.com") + 1) == "www.hao123.com"))
	css += [
		"/*旧版hao123,新版在代码1*/",
		"  #skinroot .layout-container-inner.s-sbg2",
		"  {",
		"    width: 100%;",
		"/*url(网址)---网址为背景图地址,把图片上传到任意图床,然后把图片链接黏贴到这里即可*/",
		"    background: url(https://www.accy.top/api/4) !important;",
		"  }",
		"",
		"  #skinroot #layout-content>*",
		"  {",
		"/*调整中间那个框的边框圆角弯度*/",
		"    border-radius: 15px;",
		"/*调整中间那个框内的颜色/透明度*/",
		"    background: rgba(255,255,255,.4);",
		"/*调整中间那个框的渐变时间*/",
		"    transition: background-color 0.3s;",
		"/*调整中间框内的整体内容位置(那个0调得越高,显示的行数越多)*/",
		"    padding: 40px 0px 40px 55px !important;",
		"/*可无视 调整的是框与下个框的距离*/",
		"    margin-bottom: 50px !important;",
		"/*调整中间那个框的阴影*/",
		"    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 15px 2px;",
		"/*调整中间那个框的左右位置*/",
		"    margin-left: -65px;",
		"/*调整中间那个框的上下位置*/",
		"    top: 35px;",
		"  }",
		"",
		"  #skinroot #layout-content>*:hover",
		"  {",
		"/*跟上面那个关联,调整鼠标移动到窗口内的颜色/透明度*/",
		"    background: rgba(255,255,255,.9);",
		"  }",
		"",
		"  #skinroot .i-input",
		"  {",
		"/*调整邮箱框颜色/透明度*/",
		"    background: rgba(255,255,255,0.7);",
		"  }",
		"",
		"  #skinroot .input-shadow.shadow-hook.g-ib",
		"  {",
		"/*调整百度搜索框颜色/透明度*/",
		"    background: rgba(255,255,255,0.6);",
		"  }",
		"",
		"  #skinroot .js_manage.s-sicon.site-manage",
		"  {",
		"/*调整\"添加地址\"按钮的图片和大小位置*/",
		"    content: url(https://i.loli.net/2018/11/23/5bf75c0bddd1f.png);",
		"    background: rgba(255,255,255,0);",
		"    height: 20px;",
		"    width: 20px;",
		"    visibility: visible;",
		"  }",
		"",
		"  #skinroot .gif-icon",
		"  {",
		"/*这段别改,这段是懒得慢慢改而复制黏贴改动的,改的是百度gif图标,删掉这段用黑色背景会不好看*/",
		"    content: url(https://i.loli.net/2018/11/23/5bf75c0bddd1f.png);",
		"    background: rgba(255,255,255,0);",
		"    height: 00px;",
		"    width: 00px;",
		"    visibility: visible;",
		"  }",
		"/*以下全部若看不懂请不要瞎捣-v-*/",
		"",
		"",
		"  #skinroot .footerCont,",
		"#skinroot #navrecommend-top,",
		"#skinroot #pageMenu,",
		"#skinroot #hao123-govsite,",
		"#skinroot #hotsearch-box,",
		"#skinroot #noticeLink,",
		"#skinroot #notice,",
		"#skinroot .hot-num,",
		"#skinroot #layout-side,",
		"#skinroot #skinbtn,",
		"#skinroot #shortcut-box,",
		"#skinroot #hao123-bottom,",
		"#skinroot #slidetoolbarContainer,",
		"#skinroot #mingzhanresource,",
		"#skinroot #layout-hlbar,",
		"#skinroot #guesslikesite-block,",
		"#skinroot #hao123-guesslike,",
		"#skinroot #append,",
		"#skinroot #navrecommend-hjw",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot #layout-content",
		"  {",
		"    margin: 150px auto!important;",
		"    float: inherit!important;",
		"  }",
		"",
		"  #skinroot .close-btn",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .bottom-banner-link",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .treasure-close",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot #hao123-coolsite",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot #gss0.bdstatic.com",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  .treasure-game",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  .normal",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot gss0.bdstatic.com",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .banner-box.banner-box1",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  .bottom-banner",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .bdstatic.com",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  .lefttip",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .sethome",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot #siye-img",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .siye-img",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot #sethome",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .normal",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot #normal",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .bottom-banner-link",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .bottom-banner-link.bottom-banner-linkv2",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .hotword.hotword-hook.hotword-off",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .js_item-add,",
		"#skinroot .box-famoussite,",
		".new-coolsite-bar .bar-text",
		"  {",
		"    display: none!important;",
		"  }",
		"",
		"  #skinroot .layout-container-inner",
		"  {",
		"    height: 100vh;",
		"    overflow: auto;",
		"  }",
		"",
		"  #skinroot  .popup-site-w",
		"  {",
		"    left: 50%!important;",
		"    transform: translate(-50%,0)!important;",
		"  }",
		"",
		"  .new-coolsite-bar",
		"  {",
		"    background: transparent;",
		"  }",
		"",
		"  #skinroot #search-input",
		"  {",
		"    background: rgba(255,255,255,.03);",
		"  }",
		"",
		"  #skinroot .input.input-hook",
		"  {",
		"    background: rgba(255,255,255,.03);",
		"  }",
		"",
		"  #skinroot>div>div>div",
		"  {",
		"    border: none  !important;",
		"  }",
		"",
		"  #skinroot>div>div>div>div>div>div>div",
		"  {",
		"    border: none  !important;",
		"  }",
		"",
		"  #skinroot>div>div>div",
		"  {",
		"    background: rgba(255,255,255,.0) !important;",
		"  }",
		"",
		"  #skinroot .layout-container-inner,#skinroot .page-bg",
		"  {",
		"    background: transparent;",
		"  }"
	].join("\n");
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node);
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();