Skip to content

Commit

Permalink
Merge pull request #65 from festoney8/dev
Browse files Browse the repository at this point in the history
merge dev to main, v3.4.5
  • Loading branch information
festoney8 authored Apr 16, 2024
2 parents 46e28fe + 4e0e6e6 commit 17ce83d
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 3.4.5

- 新增:搜索页隐藏搜索结果顶部的游戏/热搜话题
- 修复:隐藏顶栏按钮hover时弹出框
- 新增:隐藏动态页被block的充电动态
- 新增:隐藏分区页banner

## 3.4.4

- 新增:首页视频列表隐藏负反馈菜单(三个点),恢复标题宽度
Expand Down
38 changes: 38 additions & 0 deletions src/rules/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,44 @@ const channelGroupList: Group[] = []
if (isPageChannel()) {
// 基础项
const basicItems = [
// 隐藏 横幅banner, 同步首页设定
new CheckboxItem({
itemID: 'homepage-hide-banner',
description: '隐藏 横幅banner',
itemCSS: `.header-banner__inner, .bili-header__banner {
display: none !important;
}
.bili-header .bili-header__bar:not(.slide-down) {
position: relative !important;
box-shadow: 0 2px 4px #00000014;
}
.bili-header__channel {
margin-top: 5px !important;
}
/* icon和文字颜色 */
.bili-header .right-entry__outside .right-entry-icon {
color: #18191c !important;
}
.bili-header .left-entry .entry-title, .bili-header .left-entry .download-entry, .bili-header .left-entry .default-entry, .bili-header .left-entry .loc-entry {
color: #18191c !important;
}
.bili-header .left-entry .entry-title .zhuzhan-icon {
color: #00aeec !important;
}
.bili-header .right-entry__outside .right-entry-text {
color: #61666d !important;
}
/* header滚动后渐变出现, 否则闪动 */
#i_cecream .bili-header__bar.slide-down {
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out !important;
}
#i_cecream .bili-header__bar:not(.slide-down) {
transition: background-color 0.3s ease-out !important;
}
/* header高度 */
#biliMainHeader {min-height: unset !important;}
`,
}),
// 隐藏 全站分区栏
new CheckboxItem({
itemID: 'channel-hide-subarea',
Expand Down
8 changes: 4 additions & 4 deletions src/rules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ if (!isPageLiveHome()) {
new CheckboxItem({
itemID: 'common-hide-nav-anime-popover',
description: '隐藏 番剧弹出框',
itemCSS: `.bili-header__bar .left-entry .default-entry[href="//www.bilibili.com/anime/"] + .v-popover {
itemCSS: `.bili-header__bar .left-entry .default-entry[href*="//www.bilibili.com/anime/"] + .v-popover {
display: none !important;
}`,
}),
Expand All @@ -529,7 +529,7 @@ if (!isPageLiveHome()) {
new CheckboxItem({
itemID: 'common-hide-nav-live-popover',
description: '隐藏 直播弹出框',
itemCSS: `.bili-header__bar .left-entry :is(.default-entry[href="//live.bilibili.com"], .default-entry[href="//live.bilibili.com/"]) + .v-popover {
itemCSS: `.bili-header__bar .left-entry :is(.default-entry[href*="//live.bilibili.com"]) + .v-popover {
display: none !important;
}`,
}),
Expand All @@ -552,7 +552,7 @@ if (!isPageLiveHome()) {
new CheckboxItem({
itemID: 'common-hide-nav-game-popover',
description: '隐藏 游戏中心弹出框',
itemCSS: `.bili-header__bar .left-entry .default-entry[href^="//game.bilibili.com"] + .v-popover {
itemCSS: `.bili-header__bar .left-entry .default-entry[href*="//game.bilibili.com"] + .v-popover {
display: none !important;
}`,
}),
Expand Down Expand Up @@ -590,7 +590,7 @@ if (!isPageLiveHome()) {
new CheckboxItem({
itemID: 'common-hide-nav-manga-popover',
description: '隐藏 漫画弹出框',
itemCSS: `.bili-header__bar .left-entry .default-entry[href^="//manga.bilibili.com"] + .v-popover {
itemCSS: `.bili-header__bar .left-entry .default-entry[href*="//manga.bilibili.com"] + .v-popover {
display: none !important;
}`,
}),
Expand Down
8 changes: 8 additions & 0 deletions src/rules/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ if (isPageDynamic()) {
display: none !important;
}`,
}),
// 隐藏 被block的充电动态
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-blocked',
description: '隐藏 被block的充电动态',
itemCSS: `.bili-dyn-list__item:has(.dyn-blocked-mask) {
display: none !important;
}`,
}),
// 自动展开 相同UP主被折叠的动态
new CheckboxItem({
itemID: 'dynamic-page-unfold-dynamic',
Expand Down
10 changes: 8 additions & 2 deletions src/rules/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ if (isPageSearch()) {
defaultStatus: true,
itemCSS: `.video-list.row>div:has([href*="cm.bilibili.com"]) {display: none !important;}`,
}),
// 隐藏 搜索结果顶部的版权作品
// 隐藏 搜索结果顶部 版权作品
new CheckboxItem({
itemID: 'hide-search-page-bangumi-pgc-list',
description: '隐藏 搜索结果顶部的版权作品',
description: '隐藏 搜索结果顶部 版权作品',
itemCSS: `.bangumi-pgc-list {display: none !important;}`,
}),
// 隐藏 搜索结果顶部 游戏、热搜话题
new CheckboxItem({
itemID: 'hide-search-page-activity-game-list',
description: '隐藏 搜索结果顶部 游戏、热搜话题',
itemCSS: `.activity-game-list {display: none !important;}`,
}),
// 隐藏 弹幕数量, 默认开启
new CheckboxItem({
itemID: 'hide-search-page-danmaku-count',
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.4',
version: '3.4.5',
description:
'净化 B站/哔哩哔哩 网页元素,去广告,BV号转AV号,播放器净化,过滤视频,过滤评论,提供300+项功能,定制自己的B站页面',
author: 'festoney8',
Expand Down

0 comments on commit 17ce83d

Please sign in to comment.