NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name 哔哩哔哩主页简化
// @namespace http://tampermonkey.net/
// @version 2025-08-24
// @description 去除主页顶栏广告,去除左侧轮播图广告,保留原生搜索框;
// @author DeepMind
// @match https://www.bilibili.com
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @run-at document-start
// @grant GM_addStyle
// @license Apache-2.0
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
/* 隐藏所有指定的广告元素 */
#i_cecream > div.bili-feed4:last-child > div.bili-header.large-header:first-child > div.bili-header__bar:first-child > ul.left-entry:first-child,
#i_cecream > div.bili-feed4:last-child > div.bili-header.large-header:first-child > div.bili-header__banner:nth-child(2),
#i_cecream > div.bili-feed4:last-child > div.bili-header.large-header:first-child > div.bili-header__channel:nth-child(3),
#i_cecream > div.adblock-tips:nth-child(2),
#i_cecream > div.bili-feed4:last-child > main.bili-feed4-layout:nth-child(3) > div.feed2:last-child > div.recommended-container_floor-aside > div.container.is-version8:first-child > div.recommended-swipe:first-child {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
height: 0 !important;
overflow: hidden !important;
pointer-events: none !important;
}
.bili-header .right-entry__outside .right-entry-icon {
color: #000 !important;
}
.bili-header .right-entry__outside .right-entry-text {
color: #000 !important;
}
/* 添加平滑过渡效果 */
#i_cecream > div.bili-feed4:last-child > div.bili-header.large-header:first-child > div.bili-header__banner:nth-child(2) {
transition: opacity 0.3s ease, height 0.3s ease;
}
`);
// Your code here...
})();