隐藏百度的一些垃圾玩意儿
百度系 Debloat by PRO-2684
Imported and mirrored from https://github.com/PRO-2684/gadgets/raw/main/baidu_debloate/baidu_debloate.user.css
Details
AuthorPRO-2684
Licensegpl-3.0
Categorybaidu
Created
Updated
Size6.2 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
隐藏百度百科、百度经验的一些垃圾玩意儿。具体功能详见 GitHub。
Source code
/* ==UserStyle==
@name 百度系 Debloat
@namespace github.com/openstyles/stylus
@version 0.1.3
@description 隐藏百度的一些垃圾玩意儿
@author PRO-2684
@license gpl-3.0
@preprocessor stylus
@var checkbox hideFuckingVideo "[通用] 隐藏秒懂百科" 0
@var checkbox hideTopBar "[通用] 隐藏顶栏" 1
@var checkbox hideNavBar "[通用] 隐藏导航栏" 0
@var checkbox hideAd "[通用] 隐藏活动/广告" 1
@var checkbox hideRecommend "[通用] 隐藏相关推荐" 0
@var checkbox hideAria "[通用] 隐藏辅助模式" 1
@var checkbox hideFloat "[通用] 隐藏浮动工具条" 0
@var checkbox hideAside "[通用] 完全隐藏侧栏" 0
@var checkbox hideBubble "[贴吧] 隐藏气泡" 1
@var checkbox hideShortcutTip "[贴吧] 隐藏快捷键提示" 0
@var checkbox hideFooter "[翻译] 隐藏底栏" 1
==/UserStyle== */
@-moz-document domain("baike.baidu.com") {
if (hideFuckingVideo) {
[class*="contentBottom_"] {
display: none;
}
}
if (hideTopBar) {
[class^="index-module_topbar"] {
display: none;
}
}
if (hideNavBar) {
[class^="index-module_navBarWrapper"] {
display: none;
}
.lemmaSearchBar {
padding-top: unset;
}
}
if (hideAd) {
[class^="index-module_drawerHand__"] {
display: none;
}
}
if (hideRecommend) {
#J-related-search {
display: none;
}
}
}
@-moz-document domain("jingyan.baidu.com") {
if (hideFuckingVideo) {
.feeds-video-box, .feeds-video-one-view {
display: none;
}
}
if (hideTopBar) {
.search-box ul.channel {
display: none;
}
.article-header {
height: unset;
}
}
if (hideNavBar) {
nav.nav, #breadcrumb {
display: none;
}
}
if (hideAd && hideRecommend) {
#fresh-share-exp-e, #task-panel-wrap, .wgt-cms-banner, .wgt-income-money, .main-content-bottom {
display: none;
}
} else {
if (hideAd) {
#fresh-share-exp-e, #task-panel-wrap, .wgt-cms-banner, .wgt-income-money, #bottom-ads-container, #bottom-pic-ads-wrap {
display: none;
}
}
if (hideRecommend) {
#relate-explist {
display: none;
}
}
}
if (hideAside) {
#aside {
display: none;
}
.content-container .main-content {
width: unset;
}
}
if (hideAria) {
#wgt-barrier-free {
display: none !important;
}
}
if (hideFloat) {
#wgt-like, #wgt-exp-share {
display: none !important;
}
}
}
@-moz-document domain("tieba.baidu.com") {
if (hideTopBar) {
#head > .head_inner {
margin-top: 2em; // 留下部分空间
> .search_top {
display: none;
}
}
}
if (hideNavBar) {
#tb_nav {
display: none;
}
}
if (hideAd) {
#branding_ads, ul.p_author > li.d_icons, #com_userbar > ul > li.u_member, .p_content > .save_face_bg {
display: none; // 品牌广告、层主徽章、会员、挽尊卡
}
.right_section {
> #celebrity, > .app_download_box {
display: none; // VIP 广告、APP下载
}
}
ul.tbui_aside_float_bar > .tbui_aside_fbar_button {
&.tbui_fbar_down, &.tbui_fbar_props, &.tbui_fbar_tsukkomi {
display: none; // 浮动工具条的 APP 下载、魔法道具、神来一句
}
}
}
if (hideRecommend) {
.right_section > div:has(> .topic_list_box) {
display: none; // 贴吧热议
}
}
if (hideAria) {
ul.tbui_aside_float_bar > .tbui_aside_fbar_button.tbui_fbar_auxiliaryCare {
display: none; // 辅助模式
}
}
if (hideFloat) {
ul.tbui_aside_float_bar {
display: none;
}
}
if (hideAside) {
#container #pb_content {
background-image: none;
> .left_section {
width: 980px;
#j_core_title_wrap {
width: 980px;
}
#j_p_postlist > .l_post.l_post_bright {
width: unset;
> .d_post_content_main {
width: 828px;
> .core_reply > .core_reply_wrapper {
width: 813px;
}
}
}
}
> .right_section {
display: none;
}
}
}
if (hideBubble) {
cc > .d_post_content.j_d_post_content {
.post_bubble_top, .post_bubble_middle, .post_bubble_bottom {
background: none !important;
}
.post_bubble_top, .post_bubble_bottom {
display: none;
}
}
}
if (hideShortcutTip) {
.creative-shortcut-tip-container {
display: none;
}
}
}
@-moz-document domain("fanyi.baidu.com") {
if (hideFuckingVideo) {
.dictionary-explain-video {
display: none;
}
}
if (hideTopBar) {
#header {
display: none !important;
}
}
if (hideAd) {
.trans-domain-btn, .ai-trans-btn, .manual-trans-btn, .collection-btn, .op-trans-fb, .note-expand-btn, #app-read {
display: none !important; // 切换翻译领域,AI 翻译,人工翻译,收藏,反馈 (赞、踩),笔记,百度翻译课程中心广告
}
#transOtherRight, #app-guide, #desktop-guide-wrapper {
display: none; // 右侧广告?APP 广告?桌面版广告?
}
}
if (hideFloat) {
.footer > .extra-wrap {
display: none !important;
}
}
if (hideFooter) {
.footer > .inner {
display: none;
}
}
}