这个项目目前匹配了百度首页,百度搜索界面,百度资讯界面,百度视频界面,百度图片界面,百度知道搜索界面,百度知道问答界面,百度文库搜索界面……
Baidu 百度系列改造 by zanghuaao
Details
Authorzanghuaao
LicenseNo License
Categoryhttps://www.baidu.com
Created
Updated
Size19 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
有什么问题评论区留言……
随机动漫壁纸接口可能经常失效,及时更新或自行替换,不会可以留言询问
Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name Baidu 百度系列改造
@namespace USO Archive
@author huaao zang
@description `这个项目目前匹配了百度首页,百度搜索界面,百度资讯界面,百度视频界面,百度图片界面,百度知道搜索界面,百度知道问答界面,百度文库搜索界面。另:有什么需求或错误可以点击右上方小旗子反馈到我邮箱,我尽力而为。`
@version 20220429.6.7
@license CC-BY-NC-4.0
@preprocessor uso
==/UserStyle== */
@-moz-document regexp("https?://www.baidu.com/?") {
/*代码1,首页界面设置*/
/*预设开始*/
html{
/* 隐藏 竖滚动条 */
overflow-y: hidden;
}
body {
background-image:url(https://img.xjh.me/random_img.php?type=bg&return=302) !important;/*此处更换壁纸接口*/
background-repeat:no-repeat !important;
background-position: top center !important;
background-size: cover!important;
background-attachment: fixed !important;
font-family:"Microsoft YaHei" !important;
}
html,
body{
height: 100%;
}
a[target="_self"]{
display:none!important;/*去除显示卡片*/
}
/*预设结束*/
/* 顶部栏开始 */
#s_top_wrap/*顶栏背景*/{
background-color: rgba(255, 255, 255, .8) !important;
}
#s_tab {
background-color:rgba(255,255,255,.95)!important;
height: 45px!important;
position:fixed;
}
.s_form {
height: 40px;
}
.s_tab_inner
{
position:relative;
top:10px;
}
/* 顶部栏结束 */
/*调整搜索框位置*/
#s_fm
{
position:relative;
margin:0 auto!important;
}
#lg{
/*display: none !important;*/
visibility: hidden !important;
}
/* 设置面板位置调整*/
#wrapper>div:last-child{
position:absolute;
top:0px!important;
}
/*天气面板*/
.weather-setting-content{
background-color: rgba(255,255,255,0.95) !important;
}
/* 我的关注、推荐、导航 */
#s_main {
border:3px outset rgba(200,200,200,.8);
background-color:rgba(255,255,255,.5);
display: none !important;
}
/*屏蔽多余元素*/
.s-hotsearch-wrapper,/*首页推荐*/
.s-treasure,/*↓底部信息↓*/
#ftCon,
#s_lm_wrap,
#lm-new,
.qrcodeCon,
.no-qrcode-layer,#bottom_layer{
display: none !important;
}
/*更多产品*/
.bdbriscroll-onwheel{
height: auto !important;
}
}
@-moz-document regexp("https?://www.baidu.com/s(\\?)(?!(.*)(=news&))(.*)") {
/*代码2,网页界面设置*/
/*预设开始*/
body {
background-image: url(http://static.oneplus.cn/data/attachment/forum/201909/15/151337y2z3h3sxm5sx32f8.jpg) !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
background-position: center top !important;
background-size:cover!important;
font-family:"Microsoft YaHei" !important;
}
#wrapper
{
min-width:1200px;
width: calc(100% + 0%)!important;/*加号两边有空格*/
}
div[class*="content-info"]/*排行榜*/
{
background:rgba(0,0,0,0);
}
/*预设结束*/
/*头部设置开始*/
#s_tab {
background-color:rgba(255,255,255,.95)!important;
height: 45px!important;
width:100%;
}
.s_form {
height: 40px;
margin:0!important;
}
.s_tab_inner
{
position:relative;
top:10px;
}
.head_nums_cont_outer
{
position:absolute;
width:435px;
top:-38px;
left:70%;
}
.search_tool_conter
,.nums
{
margin:0!important;
width:438px;
}
.search_tool
,.search_tool_close
{
position:relative;
right:10px;
}
/*头部设置结束*/
/*左侧面板设置开始*/
.hint_common_restop,
.content_none/*没有找到*/
{
margin-left:140px;
}
.result-op .t+div>canvas/*时间*/
{
width:640px!important;
}
.c-group-top
,.c-group-middle
{
margin-bottom:14px!important;
}
.hint_common_restop
,#container .result-molecule:nth-of-type(2)/*搜索工具*/
,#rs_new/*相关搜索*/
,#content_left>div[class*="result"]/*搜索结果*/
{
background-color: rgba(255, 255, 255, .8);
width: 640px!important;
padding: 15px;
border-radius: 15px;
box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 5px 1px;
}
.c-group-wrapper
{
margin:0 0 20px 0;
}
.hit-toptip/*纠错提示*/
{
margin-bottom:20px;
}
#container .result-molecule:nth-of-type(2)/*搜索工具*/
{
margin-top:15px;
margin-bottom:15px!important;
}
.c-group-wrapper>.new-pmd/*热搜榜结果*/
{
margin-left:15px!important;
margin-top:20px!important;
}
#op_wiseapp
{
width:620px!important;
}
#content_left>div>div[id*="canvas"]/*头部商品广告*/
{
margin-bottom:20px!important;
}
.c-group-wrapper
{
box-shadow:none!important;
}
.c-container>.new-pmd
{
padding:0!important;
background:rgba(255, 255, 255, 0)!important;
box-shadow:none!important;
}
.ec_tuiguang_pplink/*加大广告字样*/
{
font-size:1.3em;
}
.aladdin__2AELi
,.wenda-abstract-wrap{
border:none;
box-shadow:none;
background-color: rgba(255, 255, 255, 0.05);
}
#op_wiseapp_td
{
padding:15px!important;
}
#content_left .result:hover
,#container .result-molecule:nth-of-type(2):hover/*搜索工具*/
,#content_left>div:hover/*搜索结果*/
{
background-color: rgba(255,255,255,0.95);
transition: background-color 1s;
}
#op_wiseapp_td:hover
{
background-color: rgba(255,255,255,0.5);
border-radius:25px!important;
transition: background-color 1s;
}
/*左侧面板设置结束*/
/*右侧面板设置开始*/
#content_right{
position:relative;
border-style: none;
display:block;/*隐藏右侧面板block换none*/
top:-30px;
left:95px;
}
.cr-content
,.ad-widget-header
,.hint_right_middle/*安全提示*/
,#content_right .c-result-content
,div[data-id]/*右侧登录面板*/
{
background-color: rgba(255, 255, 255, .8) !important;
padding: 25px 16px 25px 17px;
border-radius: 15px 15px 15px 15px;
min-width:272px;
max-width:360px;
}
#content_right .c-result-content
,#content_right .new-pmd/*限制右侧面板宽度,防止撑大整体面板*/
{
width:0!important;
min-width:368px;
}
#content_right .c-result-content:hover
,.cr-content:hover
,.ad-widget-header:hover
,.hint_right_middle:hover
{
background-color:white!important;
transition:background 1s;
}
#content_right>div:first-child{/* 去广告 */
display:none;
}
/*右侧面板设置结束*/
/*底部页码设置开始*/
#page{
background-color: transparent !important;
position:relative;
}
.page-inner {
width:640px;
padding-left:0!important;
position:relative;
left:50%;
transform:translateX(-50%);
}
#page strong{
background-color: rgba(51, 136, 255,0.9) !important;
height: auto;
border-radius: 18px;
border: 1px solid rgb(225, 226, 227);
box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 2px 0;
}
#page strong{
border-color: rgb(51, 136, 255);
}
#page a:hover{
border-color: rgb(51, 136, 255);
}
#foot{
width:calc(100% + 140px)!important;
}
/*底部页码设置结束*/
#content_left>div:not(.new-pmd)/*广告*/
{
display:none;
}
}
@-moz-document regexp("https?://www.baidu.com/(s|baidu)(\\?)(.*)=news&(.*)") {
/*代码3,资讯界面设置*/
/*预设开始*/
body{
margin:0!important;
padding:0!important;
background: url(https://teamtogether.coding.net/p/img/d/img/git/raw/master/%E5%A3%81%E7%BA%B894.jpg);
background-repeat:no-repeat;
background-size:cover;
background-attachment:fixed;/*背景附着方式*/
background-position:center top;/*背景位置*/
}
#wrapper
{
min-width:1200px;
}
/* 预设结束 */
/* 头部设置开始 */
#s_tab {
background-color:rgba(255,255,255,.95)!important;
height: 45px!important;
}
.s_form {
height: 40px;
margin:0!important;
}
.tab-wrapper
{
position:relative;
top:10px;
}
#header_top_bar
{
position:absolute;
left:66%;
top:63px;
width:450px;
}
#header_top_bar .nums
{
width:180px;
}
/* 头部设置结束 */
/* 左部面板设置开始 */
#content_left{
position:relative;
top:15px!important;
}
.result-op
,#gotoPage
,#rs
,.hint_top
,#noresult
{
border:1px solid white;
border-radius:15px;
width:580px!important;
padding:15px;
background:rgba(255,255,255,.85)
}
.result-op:hover
,#gotoPage:hover
,#rs:hover
,.hint_top:hover
,#noresult:hover
{
background:rgba(255,255,255);
transition: background-color 1s;
}
#gotoPage
{
position:relative;
top:15px;
margin-bottom:35px;
}
/* 左部面板设置结束 */
/* 右部面板设置开始 */
#content_right
{
display:none;
}
/* 右部面板设置结束 */
/* 尾部页码设置开始 */
#page a
,#page strong
{
border-radius:20px!important;
}
#page strong
{
background:rgba(84, 203, 222, .9)!important;
}
#page .pc:hover
,#page a:hover
{
background:rgba(84, 203, 222, .9)!important;
}
/* 尾部页码设置结束 */
/* 其他 */
#foot
{
display:none;
}
}
@-moz-document regexp("https?://www.baidu.com/sf/vsearch(\\?)(.*)") {
/*代码4,视频界面设置*/
/* 预设置开始 */
body
{
margin:0;
padding:0;
background-image: url(https://pic1.zhimg.com/v2-60c1189fb8015d30c782302648eb5154.jpg);
background-repeat:no-repeat;
background-position:center center;
background-size:cover;
background-attachment:fixed;
}
/* 预设置结束 */
/* 头部设置开始 */
.s_tab
{
background-color:rgba(255, 255, 255,0.95);
height:45px!important;
}
.s_tab_inner
{
position:relative;
top:10px;
}
.s_btn
{
line-height: 41px;
}
/* 头部设置结束 */
/* 左侧面板设置开始 */
#container{
width:100%;
}
#content_left
{
position:relative;
width:100%;
margin:0;
padding:0;
}
.video_list_container
{
width:80%;
position:relative;
margin:auto;
}
.video_list
,.video_small_intro
{
width:195px;
margin-right:15px;
}
.video_list/*视频块*/
{
background-color:rgba(255,255,255,0.85);
border-radius:15px;
padding:15px;
display:inline-block;
height:340px;
vertical-align:top;
}
.video_list:first-child {
margin-top:28px;
}
.video_small_intro/*文字块*/
{
position:relative;
top:120px;
right:195px;
}
.video_list>a
{
margin-left:10px;
}
.c-font-normal
{
display:block;
}
.video_load_more
{
background:white;
border-radius:15px;
}
/* 左侧面板设置结束 */
/* 右侧面板设置开始 */
#content_right
{
display:none;
}
/* 右侧面板设置结束 */
}
@-moz-document regexp("https?://image.baidu.com/search/index\\?(.*)") {
/* 代码5,图片界面设置 */
/* 预设开始 */
body
{
margin:0!important;
padding:0!important;
width:100%;
background:#fff;
}
#search
{
min-width:1200px!important;
}
/* 预设结束 */
/* 头部设置开始 */
.s_tab
{
background-color:rgba(255, 255, 255,0.95);
height:45px!important;
}
.s_tab b
,.s_tab a
{
margin-right:15px;
}
#bdpcImgTopTab
{
position:relative;
top:10px;
}
.s_btn
{
line-height: 41px;
}
#fw
{
position:absolute;
width:450px;
right:10px;
top:113px;
z-index:111;
}
/* 头部设置结束 */
/* 主体设置开始 */
.fc-info-hover/*广告字*/
{
display:none;
}
.imgbox
,.fc-img
{
width: calc(100% - 20px)!i...