Skip to content

Commit

Permalink
Merge pull request #63 from festoney8/dev
Browse files Browse the repository at this point in the history
merge dev to main, v3.4.3
  • Loading branch information
festoney8 authored Apr 12, 2024
2 parents 8b57c6d + bddb29b commit 69e8d28
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## 3.4.3

- 修复:空间页css
- 新增:隐藏页底footer
- 优化:净化功能细节

## 3.4.2

- 修复:点击顶栏logo时弹出其他按钮bug
Expand Down
2 changes: 1 addition & 1 deletion src/filters/videoFilter/pages/space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
11 changes: 10 additions & 1 deletion src/rules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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净化,直播首页除外
Expand Down
6 changes: 4 additions & 2 deletions src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 69e8d28

Please sign in to comment.