// 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 });
});
}
}