From c58e2257540ca3eebf5bd9423779d851b9e97805 Mon Sep 17 00:00:00 2001 From: festoney8 Date: Wed, 19 Jun 2024 01:53:12 +0800 Subject: [PATCH 1/3] update: webscreen scrollable --- src/rules/video.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rules/video.ts b/src/rules/video.ts index 1ce81460..536d5f13 100644 --- a/src/rules/video.ts +++ b/src/rules/video.ts @@ -245,6 +245,11 @@ if (isPageVideo() || isPagePlaylist()) { .webscreen-fix :is(.right-container, .playlist-container--right) { padding-top: 100vh; } + /* 隐藏小窗 */ + .webscreen-fix .float-nav-exp .nav-menu .item.mini, + .webscreen-fix .fixed-sidenav-storage .mini-player-window { + display: none !important; + } /* 滚动条 */ .webscreen-fix::-webkit-scrollbar { display: none !important; From 68eb70a4a2c5f9c20f5d54c7d22cbe01ac741c25 Mon Sep 17 00:00:00 2001 From: festoney8 Date: Wed, 19 Jun 2024 02:56:27 +0800 Subject: [PATCH 2/3] fix: subarea popover position when hiding banner #78 --- CHANGELOG.md | 4 ++++ src/rules/channel.ts | 12 ++++++++++-- src/rules/homepage.ts | 10 +++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 443872fa..e206b4b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 3.7.2 + +- 更新:首页 隐藏banner,第一排按钮弹出菜单下置 + ## 3.7.1 - 移除:顶栏右侧稍后再看相关功能,适配网页变动 diff --git a/src/rules/channel.ts b/src/rules/channel.ts index d6fe906f..eba39033 100644 --- a/src/rules/channel.ts +++ b/src/rules/channel.ts @@ -11,7 +11,8 @@ if (isPageChannel()) { new CheckboxItem({ itemID: 'homepage-hide-banner', description: '隐藏 横幅banner', - itemCSS: `.header-banner__inner, .bili-header__banner { + itemCSS: ` + .header-banner__inner, .bili-header__banner { display: none !important; } .bili-header .bili-header__bar:not(.slide-down) { @@ -43,7 +44,14 @@ if (isPageChannel()) { } /* header高度 */ #biliMainHeader {min-height: unset !important;} - `, + /* 分区菜单 第一排按钮的二级菜单下置 */ + .v-popover.is-top {padding-top: 5px; padding-bottom: unset !important; bottom: unset !important;} + @media (min-width: 2200px) {.v-popover.is-top {top:32px;}} + @media (min-width: 1701px) and (max-width: 2199.9px) {.v-popover.is-top {top:32px;}} + @media (min-width: 1367px) and (max-width: 1700.9px) {.v-popover.is-top {top:28px;}} + @media (min-width: 1100px) and (max-width: 1366.9px) {.v-popover.is-top {top:28px;}} + @media (max-width: 1099.9px) {.v-popover.is-top {top:24px;}} + `, }), // 隐藏 全站分区栏 new CheckboxItem({ diff --git a/src/rules/homepage.ts b/src/rules/homepage.ts index b908e679..8cc686ac 100644 --- a/src/rules/homepage.ts +++ b/src/rules/homepage.ts @@ -41,7 +41,15 @@ if (isPageHomepage()) { } #i_cecream .bili-header__bar:not(.slide-down) { transition: background-color 0.3s ease-out !important; - }`, + } + /* 分区菜单 第一排按钮的二级菜单下置 */ + .v-popover.is-top {padding-top: 5px; padding-bottom: unset !important; bottom: unset !important;} + @media (min-width: 2200px) {.v-popover.is-top {top:32px;}} + @media (min-width: 1701px) and (max-width: 2199.9px) {.v-popover.is-top {top:32px;}} + @media (min-width: 1367px) and (max-width: 1700.9px) {.v-popover.is-top {top:28px;}} + @media (min-width: 1100px) and (max-width: 1366.9px) {.v-popover.is-top {top:28px;}} + @media (max-width: 1099.9px) {.v-popover.is-top {top:24px;}} + `, }), // 隐藏 大图活动轮播, 默认开启 new CheckboxItem({ From 3fb9693c9d1c078c121d80e2351b36089ec502f8 Mon Sep 17 00:00:00 2001 From: festoney8 Date: Fri, 21 Jun 2024 10:33:26 +0800 Subject: [PATCH 3/3] feat: live page activity auto jump blanc --- CHANGELOG.md | 2 ++ src/rules/live.ts | 18 ++++++++++++++++++ vite.config.ts | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e206b4b0..ebcfea3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 3.7.2 +- 新增:直播页 活动直播页自动跳转普通直播 +- 优化:播放页 网页全屏页面滚动 - 更新:首页 隐藏banner,第一排按钮弹出菜单下置 ## 3.7.1 diff --git a/src/rules/live.ts b/src/rules/live.ts index f9469506..6f901b1b 100644 --- a/src/rules/live.ts +++ b/src/rules/live.ts @@ -124,6 +124,24 @@ if (isPageLiveRoom()) { } `, }), + // 活动直播页 自动跳转普通直播 + new CheckboxItem({ + itemID: 'activity-live-auto-jump', + description: '活动直播页 自动跳转普通直播 (实验功能)', + itemFunc: () => { + const jump = () => { + if (document.querySelector('#internationalHeader')) { + if (!location.href.includes('/blanc/')) { + window.location.href = location.href.replace( + 'live.bilibili.com/', + 'live.bilibili.com/blanc/', + ) + } + } + } + document.readyState === 'complete' ? jump() : document.addEventListener('DOMContentLoaded', jump) + }, + }), ] liveGroupList.push(new Group('live-basic', '直播页 基本功能', basicItems)) diff --git a/vite.config.ts b/vite.config.ts index d510cdf1..c07e5279 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ userscript: { name: 'bilibili 页面净化大师', namespace: 'http://tampermonkey.net/', - version: '3.7.1', + version: '3.7.2', description: '净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站', author: 'festoney8',