diff --git a/CHANGELOG.md b/CHANGELOG.md index 97b880b6..9134cb7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## 3.4.3 + +- 修复:空间页css +- 新增:隐藏页底footer +- 优化:净化功能细节 + ## 3.4.2 - 修复:点击顶栏logo时弹出其他按钮bug diff --git a/src/filters/videoFilter/pages/space.ts b/src/filters/videoFilter/pages/space.ts index 4302eb38..77b97dc6 100644 --- a/src/filters/videoFilter/pages/space.ts +++ b/src/filters/videoFilter/pages/space.ts @@ -173,7 +173,7 @@ if (isPageSpace()) { } #page-index .video .content .small-item:nth-child(4n+1) {padding-left: 7px !important; padding-right: 7px !important;} #page-index .video .content .small-item:nth-child(4n+4) {padding-left: 7px !important; padding-right: 7px !important;} - .small-item {padding: 10px 7px !important;}` + #page-index .video .content .small-item {padding: 10px 7px !important;}` // UI组件, 时长过滤 const durationItems = [ diff --git a/src/rules/common.ts b/src/rules/common.ts index 8a9389ed..2564e18f 100644 --- a/src/rules/common.ts +++ b/src/rules/common.ts @@ -60,10 +60,13 @@ const cleanURL = () => { 'visit_id', 'extra_jump_from', ]) - // 搜索页参数, 意义不明所以做一下判断 if (isPageSearch()) { keysToRemove.add('vt') } + if (isPageLiveRoom()) { + keysToRemove.add('bbid') + keysToRemove.add('ts') + } const url = location.href const urlObj = new URL(url) const params = new URLSearchParams(urlObj.search) @@ -419,6 +422,12 @@ const basicItems = [ itemFunc: cleanURL, isItemFuncReload: true, }), + // 隐藏页底 footer + new CheckboxItem({ + itemID: 'hide-footer', + description: '隐藏 页底footer', + itemCSS: `.international-footer {display: none !important;}`, + }), ] commonGroupList.push(new Group('common-basic', '全站通用项 基本功能', basicItems)) // 通用header净化,直播首页除外 diff --git a/src/rules/video.ts b/src/rules/video.ts index e8c06931..2e0f6195 100644 --- a/src/rules/video.ts +++ b/src/rules/video.ts @@ -1055,14 +1055,16 @@ if (isPageVideo() || isPagePlaylist()) { itemID: 'video-page-hide-right-container-right-bottom-banner', description: '隐藏 活动banner', defaultStatus: true, - itemCSS: `#right-bottom-banner {display: none !important;}`, + itemCSS: `#right-bottom-banner {display: none !important;} + .video-container-v1 .right-container .right-container-inner {padding-bottom: 15px !important;}`, }), // 隐藏 直播间推荐, 默认开启 new CheckboxItem({ itemID: 'video-page-hide-right-container-live', description: '隐藏 直播间推荐', defaultStatus: true, - itemCSS: `.right-container .pop-live-small-mode {display: none !important;}`, + itemCSS: `.right-container .pop-live-small-mode {display: none !important;} + .video-container-v1 .right-container .right-container-inner {padding-bottom: 15px !important;}`, }), ] videoGroupList.push(new Group('video-right', '右侧 视频栏', rightItems)) diff --git a/vite.config.ts b/vite.config.ts index 3e206537..514e47e3 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.4.2', + version: '3.4.3', description: '净化 B站/哔哩哔哩 网页元素,去广告,BV号转AV号,播放器净化,过滤视频,过滤评论,提供300+项功能,定制自己的B站页面', author: 'festoney8',