Make BiliBili Great Again

useful tweaks for bilibili.com

< Feedback on Make BiliBili Great Again

Review: Good - script works

§
Posted: 2024-06-10

一些css样式的补充

// 首页优化
if (location.host === "www.bilibili.com") {
GM_addStyle('.feed2 .container > *:not(.recommended-swipe):not(:has(a)) { display: none }'); // 兼容adguard去广告插件
GM_addStyle('.feed2 .container > *:not(.recommended-swipe):has(a[href*="cm.bilibili.com"]) { display: none }'); // 不误伤轮播图去除广告
GM_addStyle('.feed2 .container .carousel-slide:has(a[href*="cm.bilibili.com"]) { display: none }'); // 专门去除轮播图广告
GM_addStyle('.feed2 .container > * { margin-top: 0 !important }');
}

// 去掉司马的广告屏蔽检测横幅
GM_addStyle('.adblock-tips { display: none !important}')

Post reply

Sign in to post a reply.