Skip to content

简百度 Simple Baidu by qiuzaiyou

Imported from a private source

Mirrored from https://raw.githubusercontent.com/QIUZAIYOU/Stylish/main/Baidu/baidu.user.styl

Screenshot of 简百度 Simple Baidu

Details

Authorqiuzaiyou

LicenseGPL-3.0 License

Categoryqiuzaiyou,baidu

Created

Updated

Size39 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

去广告,样式更改。

Notes

⭐ 若发现本样式适配图片不能正常显示的问题,可在 Stylus 设置中尝试开启「启用CSP补丁以使样式资源生效」选项。⭐
⭐ 但开启此选项可能会导致网站加载异常,情视具体情况而定。⭐

历史更新

2024

03.14:优化三列模式下AI回答结果样式显示。

2022

09.01:积累问题修复。

07.22:适当增加单列及三列模式下搜索结果宽度(单列:50%,三列模式:75%)。

07.20:修复三列模式下部分搜索结果样式错误的问题。

04.05:修复 #15 及部分搜索结果元素宽度错误的问题。

03.24:修复三列模式下搜索结果为「万年历」时显示错位的问题。

02.27:修复三列模式下搜索结果以组合状态显示时排列不合适的问题。

2021

11.21:修复搜索结果页面空白内容及三列模式下未打开百度百科秒懂百科时视频占位元素被错误显示的问题。

10.19:修复搜索结果页面分页失效及相关搜索元素错位问题。

08.13:修复三列模式下部分搜索结果显示错位的问题。

07.29:修复三列模式下部分搜索结果显示错位的问题。

07.19:修复样式设置无效的问题,并改双列显示为三列,及其他积累问题修复。

02.28:修复天气搜索结果字体颜色问题。

2020

12.03:修复部分搜索结果错位问题,及化部分元素展示效果。

09.22:新增搜索结果双列显示开关,双列显示会导致部分搜索结果样式不正常损失部分信息,因搜索结果情况复杂未做充分适配,看个人情况选择开启与否。

2019

05.16:取消夜间模式(百度搜索结果中一些不确定的元素在深色背景下显示不清晰并且不能更改,为全局体验考虑,故取消夜间模式只保留其他更改)

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
/* ==UserStyle==
@name           简百度 Simple Baidu
@namespace      USO Archive
@author         QIUZAIYOU
@description    `去广告,样式更改。`
@version        2024.0314
@license        GPL-3.0 License
@preprocessor   uso
@advanced dropdown trebleList "搜索结果三列显示" {
    trebleist_ON "开" <<<EOT
	#rs,
	#foot,
	[tpl="recommend_list"],
	[tpl="jy_course_and_org_pc"] [class*="course-new-style"]>div.c-row,
	#rs_new,
	#content_left .result-molecule,
	[tpl="bjh_addressing"]{
		display: none!important;
	}

	#container.sam_newgrid #content_left {
		margin: 0 auto!important;
		width: 100%!important;
		display: grid!important;
		grid-template-columns: repeat(3,1fr)!important;
      grid-gap: 10px!important;
	}

	div#content_left>div[class],
	div#content_left>div[class="c-group-wrapper"]>div[class] {
		width: 100%!important;
		margin: 0!important;
		box-sizing: border-box!important;
		padding: 15px!important;
		border-radius: 10px!important;
		overflow: auto;
		background: #fff!important;
	}

	div#content_left>div[class="c-group-wrapper"] {
		display: flex!important;
		flex-direction: row!important;
		justify-content: space-between!important;
		width: 100%!important;
		background: transparent!important;
		padding: 0!important;
		margin: 0!important;
		flex-wrap: wrap!important;
		border-radius: 10px!important;
		overflow: hidden!important;
		margin-bottom: 10px!important;
	}

	div#content_left>div[class="c-group-wrapper"]>div[class]:first-child,
	div#content_left>div[class="c-group-wrapper"]>div[class]:last-child,
	#content_left .c-group-wrapper>div[class]:not(:first-child, :last-child) {
		border-radius: 10px!important;
	}

	div#content_left>div[class="c-group-wrapper"]:hover,
	[class*="course-new-style"] {
		box-shadow: none!important;
	}

	div#content_left>div[class].hit-toptip.new-pmd,
	#rs_top_new,
	.hit_top_new {
		display: flex;
		align-items: center;
		justify-content: center;
		background: #fff;
		width: 100%;
	}

	div#content_left>div[class].hit-toptip.new-pmd .c-gap-bottom-large {
		margin: 0!important;
	}

	div#content_left>div[class] .c-span9,
	div#content_left>div[class] canvas,
	div#content_left>.c-group-wrappe>div[class],
	div#content_left>div[class="c-group-wrapper"]>div[class] ul,
	[class*="course-new-flex"] {
		width: 100%!important;
	}

	div#content_left>div[class="c-group-wrapper"]>div[class] ul {
		max-height: 310px!important;
	}

	div#content_left>div[class="c-group-wrapper"]>div[class][srcid] {
		width: calc((100% - 10px) / 2)!important;
		height: 219px!important;
	}
	div#content_left>div[class="c-group-wrapper"]>div[class][srcid].new-pmd .c-gap-top{
		margin-top:0!important;
	}
	div#content_left>div[class="c-group-wrapper"]>div[class][srcid]:first-child {
		overflow: hidden!important;
	}

	div#content_left>div[class].new-pmd .c-gap-top-large,
	.new-pmd .c-row:not([class*='bk_polysemy_'] [class*='video-wrapper_'][class*='hide_'], [class*='select-wrapper']),
	.c-border,
	div#content_left>div[class].new-pmd .c-tabs.c-sub-tabs .c-tabs-content {
		width: 100%!important;
		display: flex!important;
		background: transparent!important;
		box-sizing:border-box!important;
	}

	[class*='bk_polysemy_'] [class*='video-wrapper_']{
		width: 100%!important;
		height: auto!important
	}

	div#content_left>div[class].new-pmd .c-abstract {
		margin-top: 10px!important;
	}

	div#content_left>div[class] .info-row_37tWa .info-col_2viHg {
		width: inherit!important;
	}

	div#content_left>div[class].c-container table,
	div#content_left>div[class].new-pmd.c-container .c-container[class*="aladdin-card"] .c-border,
	div#content_left>div[class].new-pmd.c-container .c-container[class*="aladdin-card"] .c-border>.c-row{
		display: flex!important;
		flex-direction: column!important;
	}

	div#content_left>div[class] .re-box_2CJ9w {
		box-shadow: none!important;
	}

	div#content_left>div[class].new-pmd.c-container:not([mu*="tieba"]) > .c-container {
		overflow: auto;
		margin: 0!important;
		height: 270px!important;
	}

	div#content_left>div[class] .c-border .c-span-last {
		width: 100%!important;
		margin-top: 10px!important;
	}

	div#content_left>div[class] .op-short-video-pc,
	div#content_left>div[class].new-pmd .c-tabs.c-sub-tabs .c-tabs-content .c-row {
		overflow: auto!important;
		padding-bottom: 5px!important;
	}

	div#content_left>div[class] .op-short-video-pc .c-span3 {
		width: calc((100% - 60px) / 2)!important
	}

	div#content_left>div[class].new-pmd .op-short-video-pc .c-img img {
		width: initial!important;
	}

	.op_weather4_twoicon_container_div {
		overflow-y: hidden!important;
		overflow-x: scroll!important;
	}

	div#content_left>div[class][mu*="天气"] .c-row,
	div#content_left>div[class] .wenda-abstract-wrap-new,
	div#content_left>div[class][tpl="site"]>.c-border,
	div#content_left>div[class][mu*="ip138"]>.c-border,
	div#content_left>div[class][mu*="typhoon"]>.c-row,
	div#content_left>div[class][mu*="phoneSearch"]>.c-border,
	div#content_left>div[class][mu*="nourl.ubs.baidu.com"]>div>.c-row>.c-span12>.c-border,
	div#content_left>div[class][mu*="zhuanlan.zhihu.com"]>div>.c-row>.c-span12>.c-border,
	div#content_left>div[class][mu*="blog.csdn.net"]>div>.c-row>.c-span12>.c-border,
	div#content_left>.result-op[tpl="wenda_abstract_pc"]>div>.c-row>.c-span12>.c-border,
	div#content_left>div[class][mu*="nourl.ubs.baidu.com"][tpl="game-page-profession"]>div>.c-row>.c-span12>.c-border>div:not([class])>.c-row,
	.c-container[mu*="vsearch?pd=goods_tab"] h3+[style],
	.c-container[mu*="tieba"]>.c-container>[has-tts]{
		flex-direction: column!important;
	}

	.op_site_box_tools table td {
		padding: 3px!important;
		text-align: center!important;
	}

	div#content_left>div[class][tpl="site"]>.c-border>.op_site_domain {
		margin-bottom: 7px!important;
	}

	div#content_left>div[class][tpl="site"]>.c-border>.op_site_domain>.op_site_domain_right,
	.op-ip-detail table {
		height: -webkit-fit-content!important;
		height: -moz-fit-content!important;
		height: fit-content!important;
		margin: 0!important;
	}

	div#content_left>div[class][tpl="site"]>.c-border>.op_site_domain>.op_site_domain_right>p:not([class]),
	div#content_left>div[class][mu*="nourl.ubs.baidu.com"]>div>div[style] {
		display: flex!important;
		flex-flow: column nowrap!important;
	}

	div#content_left>div[class][mu*="ip138"]>.c-row.c-gap-top,
	div#content_left>div[class][mu*="ip138"]>.c-border>.c-row.c-gap-top,
	.new-pmd .c-border ul[class*="prod-wrap"]{
		display: flex!important;
		align-items: center!important;
	}

	div#content_left>div[class][tpl="site"]>.c-border>.op_site_domain>.op_site_domain_right>p:not([class])>a,
	div#content_left>div[class][mu*="ip138"]>.c-border>.c-row.c-gap-top>.c-span-last {
		margin: 0!important;
	}

	div#content_left>div[class][tpl="site"]>.c-border>.op_site_main,
	[class*="course-new-style"] {
		margin-top: 0!important;
		padding: 0!important;
	}

	div#content_left>div[class][tpl="site"]>.c-border>.op_site_main>.op_site_gap_top {
		margin-top: 8px!important;
	}

	div#content_left>div[class][mu*="nourl.ubs.baidu.com"]>div {
		overflow: auto;
	}

	div#content_left>div[class][mu*="nourl.ubs.baidu.com"][tpl="game-page-profession"]>div {
		overflow: hidden;
	}

	#container.sam_newgrid .c-container .t,
	#container.sam_newgrid .c-container .c-title,
	.ms-measures-container .operation-container {
		display: flex!important;
	}

	.ms-measures-container .operation-unit-number {
		width: 1rem!important;
	}

	.ms-measures-container .dropdown-menu {
		display: flex;
		flex-flow: column nowrap!important;
		align-items: center!important;
	}

	.ms-measures-container .ms-measures-content .op-unit-tabs-nav-container .op-unit-tabs-nav-left-bg {
		width: 100%!important;
	}

	.ms-measures-container .ms-measures-content .op-unit-tabs-nav-container .op-unit-tabs-nav-left {
		width: calc(100% - 38px)!important;
	}

	.ms-measures-container .dropdown-menu li {
		width: 100%!important;
		text-align: center!important;
	}

	.ms-measures-container .dropdown-menu-item {
		padding: 0!important
	}

	div#content_left>div[class][mu*="forex.hexun.com"][tpl="exrate"] .op_exrate_addmodle,
	div#content_left>div[class][mu*="forex.hexun.com"][tpl="exrate"] .op_exrate_from_e,
	div#content_left>div[class][mu*="forex.hexun.com"][tpl="exrate"] .op_exrate_to_e,
	.op_exrate_txt_e {
		margin-bottom: 15px!important;
	}

	div#content_left>div[class][mu*="forex.hexun.com"][tpl="exrate"] .op_exrate_tip {
		margin-top: 0!important;
	}

	[class*='board_'] [class*='type-map_'] [class*='type-wrap_'] {
		width: 36%!important;
	}

	.new-pmd .c-span5 {
		width: 100px!important
	}

	[mu*="mydown.yesky.com"] .c-span12 {
		margin: 0!important;
	}
	[class*="wenda-abstract"] .c-border,.c-border[class*="b2b-straight-wrap"]{
		flex-direction: column!important;
	}
	[class*="wenda-abstract"]{
		border: none!important;
		overflow: hidden!important;
	}
	[class*="calendar_"] {
		margin:unset!important;
		box-shadow:none!important;
	}
	[class*="calendar"] [class*="calendar-box"] [class*="calendar-box-left"]{
		width: 294px!important;
	}

	[class*="calendar"] [class*="calendar-box"] [class*="calendar-box-left"] [class*="header-box"]{
		flex-wrap: wrap!important;
	}
	[class*="calendar"] [class*="calendar-box"] [class*="calendar-box-left"] [class*="header-box"] [class*="back-today"]{
	
	}
	[class*="calendar"] [class*="calendar-box"] [class*="calendar-box-left"] [class*="header-box"] [class*="header-block"]{
		width: 76px!important;
		margin: 0 5px 5px 0!important;
	}
	[class*="calendar"] [class*="calendar-box"] [class*="calendar-box-left"] [class*="header-box"] [class*="header-block-2"]{
    	padding: 0 28px!important;
	}
	[class*="calendar"] [class*="calendar-box"] [class*="calendar-box-left"] [class*="header-box"] [clas...

Reviews

No reviews yet.