Skip to content

Commit

Permalink
update: bangumi page common header items
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jun 15, 2024
1 parent 04384db commit f929a05
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- 重构:URL净化、BV号转AV号
- 优化:去除播放页网址跳变问题
- 优化:减少URL变化对浏览器历史记录的影响
- 优化:顶栏净化对版权视频页优化

## 3.7.0

Expand Down
40 changes: 38 additions & 2 deletions src/rules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .left-entry .v-popover-wrap a[href="https://www.bilibili.com/"]>svg {
display: none !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntryTitle__"] > svg {
display: none !important;
}`,
}),
// 隐藏 首页
Expand Down Expand Up @@ -469,6 +473,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .bili-header .left-entry__title .mini-header__logo {
margin-right: 0 !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntryTitle__"] > div {
display: none !important;
}`,
}),
// 隐藏 分区弹出框
Expand All @@ -491,6 +499,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .left-entry .v-popover-wrap:has(>a[href*="bilibili.com/anime"]) {
display: none !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntry__"] li:has(a[href*="bilibili.com/anime"]){
display: none !important;
}`,
}),
// 隐藏 番剧弹出框
Expand All @@ -514,6 +526,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .left-entry .v-popover-wrap:has(>a[href*="live.bilibili.com"]) {
display: none !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntry__"] li:has(a[href*="live.bilibili.com"]){
display: none !important;
}`,
}),
// 隐藏 直播弹出框
Expand All @@ -537,6 +553,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .left-entry .v-popover-wrap:has(>a[href*="game.bilibili.com"]) {
display: none !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntry__"] li:has(a[href*="game.bilibili.com"]){
display: none !important;
}`,
}),
// 隐藏 游戏中心弹出框
Expand All @@ -560,6 +580,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .left-entry .v-popover-wrap:has(>a[href*="show.bilibili.com"]) {
display: none !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntry__"] li:has(a[href*="show.bilibili.com"]){
display: none !important;
}`,
}),
// 隐藏 漫画
Expand All @@ -575,6 +599,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .left-entry .v-popover-wrap:has(>a[href*="manga.bilibili.com"]) {
display: none !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntry__"] li:has(a[href*="manga.bilibili.com"]){
display: none !important;
}`,
}),
// 隐藏 漫画弹出框
Expand All @@ -598,6 +626,10 @@ if (!isPageLiveHome()) {
}
#biliMainHeader .left-entry .v-popover-wrap:has(>a[href*="bilibili.com/match/"]) {
display: none !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_leftEntry__"] li:has(a[href*="www.bilibili.com/v/game/match"]){
display: none !important;
}`,
}),
// 隐藏 活动/活动直播
Expand Down Expand Up @@ -902,6 +934,10 @@ if (!isPageLiveHome()) {
/* 旧版header */
#internationalHeader .nav-user-center >div:has(.mini-upload) {
visibility: hidden !important;
}
/* 番剧页 */
[class^="BiliHeaderV3_headerUploadEntry"] {
visibility: hidden !important;
}`,
}),
]
Expand All @@ -917,7 +953,7 @@ if (!isPageLiveHome()) {
maxValue: 2000,
disableValue: -1,
unit: 'px',
itemCSS: `.bili-header .bili-header__bar {padding-left: ???px !important;}`,
itemCSS: `.bili-header .bili-header__bar, [class^="BiliHeaderV3_biliHeaderBar___"] {padding-left: ???px !important;}`,
itemCSSPlaceholder: '???',
}),
new NumberItem({
Expand All @@ -943,7 +979,7 @@ if (!isPageLiveHome()) {
maxValue: 2000,
disableValue: -1,
unit: 'px',
itemCSS: `.bili-header .bili-header__bar {padding-right: ???px !important;}`,
itemCSS: `.bili-header .bili-header__bar, [class^="BiliHeaderV3_biliHeaderBar___"] {padding-right: ???px !important;}`,
itemCSSPlaceholder: '???',
}),
]
Expand Down

0 comments on commit f929a05

Please sign in to comment.