Skip to content

百度贴吧去广告,页面结构调整 by zcq100

Details

Authorzcq100

LicenseNo License

Categorytieba.baidu.com

Created

Updated

Size2.8 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

去掉帖子页面的右侧栏,左侧图标,分享按钮,工具按钮,拉伸内容显示。

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         tieba.baidu.com
@version      20231128.07.42
@namespace    userstyles.world/user/zcq100
@description  去掉帖子页面的右侧栏,左侧图标,分享按钮,工具按钮,拉伸内容显示。帖子内容正文部分默认字体: 【LXGW WenKai GB Screen】,如果想得到最佳的效果,请下载这个字体。
@author       zcq100
@license      MIT
==/UserStyle== */

@-moz-document url-prefix("https://tieba.baidu.com/") {
.right_section,
.share_btn_wrapper,
.tbui_aside_float_bar,
.achievement_medal_section,
.core_title_btns,
.p_thread,
.nav_wrap,
.card_top_right {
	display: none;
}

/*全局字体*/
body,
.d_badge_title {
	font-family: "微软雅黑";
	font-size: 12px;
}

/*顶部搜索按钮降低饱和度*/
.search_bright .search_btn {
	border: none;
}

.search_main_wrap {
	opacity: 0.7;
}

.card_top_theme2 {
	margin: 0px;
	border: none;
}

.search_bright .search_btn_enter_ba {
	background: #a3bee7;
}

.d_post_content_main,
h1.core_title_txt {
	font-family: "LXGW WenKai GB Screen", "微软雅黑", "华文楷体";
}

.core_title_txt {
	font-size: 1.8em;
	margin-left: 10px;
}

/*帖子文字加大*/
.d_post_content {
	font-size: 1.4em;
}

/* 去掉左侧用户下的图标 */
.d_author .d_icons {
	display: none;
}
.p_author li.icon a {
	border: none;
}
.p_author li.l_badge a {
	border: none;
}

/*用户图形加上阴影和边框弧度*/
.p_author li.icon img {
	border-radius: 20%;
	box-shadow: 3px 3px 5px gray;
}


.left_section,
.core_title_wrap_bright,
.l_post {
	width: 100%;
}

.l_post_bright .core_reply_wrapper {
	width: 100%;
	border-radius: 10px 0px 10px 10px;
	background-color: rgb(245, 245, 245);
}

/*帖子里面的图片加上阴影*/
.BDE_Image {
	border-radius: 10px;
	box-shadow: 5px 5px 5px gray;
	/*margin: 0px auto;
	display: block;*/
}

/*去掉浮动广告和帖子里面夹带广告*/
div[ad-dom-img],
.l_post:has(.recom-wrapper),
div:has(.j_click_close),
.thread_item_box:has(.icon-colse)
{
	display: none !important;
}


/*归属 发帖时间 颜色透明降低*/
.core_reply_tail {
	opacity: 0.5;
}

.d_post_content_main {
	width: 820px;
}

.old_style_wrapper {
	width: 95%;
}

.edui-container {
	width: 100%
}

.tb_rich_poster {
	margin: 0px 0px 0px 10px;
}

/*贴吧列表页*/
.right_wrap div:nth-child(2),
.page-container .top-sec{
	display: none;
}

/*贴吧列表*/
/*去掉皇冠广告*/
.aside_region.celebrity,
.j_thread_list .icon_wrap,
.card_banner img,
.gift-goin {
	display: none;
}
.card_banner {
	height: 100px;
}

/*设置背景*/
/*
#head {
    background-image: url(https://img.freepik.com/premium-vector/illustration-of-seamless-green-leaf-pattern-abstract-floral-background-with-leaves-line-style-pattern-floral-design_212168-232.jpg?w=2000);
    background-repeat: repeat;
    background-size: 400px 400px;
	opacity: 0.5;
}
*/
}

Reviews

No reviews yet.