屏蔽B站首页视频推荐,只保留搜索框和导航栏的火狐插件 addons.mozilla.org/firefox/addon/bilibili-clean-homepage

BAY4FVHMSKRRVU362ROIXTL4SYALJTWBRGFQNDAQRLBIPXWYOQWAC

Dependencies

Change contents

message = 'init'
timestamp = '2026-02-25T16:46:25.102716133Z'
[[authors]]
key = '51vRw7nuTkQZMxpJ8CtV1bmLNFyPngpPee8WQt1bZnJM'
# Dependencies
[2] MD7AG6SB4IDI54P2C5MTXX6K7YAE4JSIPXIVNGUJO6Y5KDRLXFTQC #
# Hunks
1. File addition: "style.css" in "" "UTF-8"
up 2.1, new 0:33
+
/* === Bilibili Clean Homepage === */
+
+
/* 隐藏频道分类导航 (动态、热门、番剧、国创、综艺...) */
+
.bili-header__channel,
+
.header-channel {
+
display: none !important;
+
}
+
+
/* 隐藏整个视频推荐信息流区域 */
+
.bili-feed4-layout {
+
display: none !important;
+
}
+
+
/* 隐藏右下角浮动按钮 */
+
.palette-button-wrap {
+
display: none !important;
+
}
+
+
/* 隐藏换一换按钮 */
+
.feed-roll-btn {
+
display: none !important;
+
}
+
+
/* 隐藏顶部浏览器提示横条 */
+
.browser-tip {
+
display: none !important;
+
}
+
+
/* 导航栏透明叠在 banner 上面 */
+
.bili-header__bar {
+
position: relative !important;
+
z-index: 9999 !important;
+
background: transparent !important;
+
}
+
+
/* banner 上移,覆盖到导航栏后面 */
+
.bili-header__banner {
+
margin-top: -64px !important;
+
position: relative !important;
+
z-index: 1 !important;
+
}
+
+
/* 页面背景简洁化 */
+
body {
+
background: #f5f5f5 !important;
+
}
+
+
#app {
+
min-height: 100vh;
+
}
2. File addition: "manifest.json" in "" "UTF-8"
up 2.1, new 1003:1040
+
{
+
"manifest_version": 2,
+
"name": "Bilibili Clean Homepage",
+
"version": "1.0",
+
"description": "屏蔽B站首页视频推荐,只保留搜索框和导航栏",
+
"content_scripts": [
+
{
+
"matches": ["*://www.bilibili.com/*"],
+
"css": ["style.css"],
+
"js": ["content.js"],
+
"run_at": "document_start"
+
}
+
],
+
"browser_specific_settings": {
+
"gecko": {
+
"id": "bilibili-clean-homepage@dzming.li",
+
"data_collection_permissions": {
+
"required": ["none"]
+
}
+
}
+
}
+
}
3. File addition: "content.js" in "" "UTF-8"
up 2.1, new 1568:1602
+
// Only apply on the actual homepage
+
if (window.location.pathname === '/' || window.location.pathname === '') {
+
// Monitor for dynamically loaded content and hide it
+
const observer = new MutationObserver(() => {
+
// Hide any feed containers that appear after initial load
+
document.querySelectorAll('.bili-feed4-layout, .bili-header__channel, .header-channel, .palette-button-wrap, .feed-roll-btn').forEach(el => {
+
if (el.style.display !== 'none') {
+
el.style.display = 'none';
+
}
+
});
+
});
+
+
if (document.body) {
+
observer.observe(document.body, { childList: true, subtree: true });
+
} else {
+
document.addEventListener('DOMContentLoaded', () => {
+
observer.observe(document.body, { childList: true, subtree: true });
+
});
+
}
+
}