Skip to content

Commit

Permalink
feat: channel page hide banner
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Apr 16, 2024
1 parent 882b5f2 commit 4e0e6e6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## 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

0 comments on commit 4e0e6e6

Please sign in to comment.