BAY4FVHMSKRRVU362ROIXTL4SYALJTWBRGFQNDAQRLBIPXWYOQWAC /* === 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;}
{"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"]}}}}
// Only apply on the actual homepageif (window.location.pathname === '/' || window.location.pathname === '') {// Monitor for dynamically loaded content and hide itconst observer = new MutationObserver(() => {// Hide any feed containers that appear after initial loaddocument.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 });});}}