Skip to content

Commit

Permalink
feat: border-radius fit popular
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jan 7, 2024
1 parent 1549eee commit 8997582
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

## 使用

- **注意「首页、播放页、版权作品播放页、直播间、搜索页、动态页」这 6 个页面,菜单各不相同**
- **注意「首页、播放页、版权作品播放页、直播间、搜索页、动态页、热门视频/排行榜页」这 7 个页面,菜单各不相同**

- 「通用」项目对所有页面生效

Expand All @@ -48,7 +48,7 @@
## 功能介绍

- 适用于 **净化新版 bilibili 网页**,不做老版本页面适配
- 目前支持 **「首页、播放页、版权作品播放页、直播间、搜索页、动态页」**6 个页面,可在每个页面下开启插件菜单,查看功能列表
- 目前支持 **「首页、播放页、版权作品播放页、直播间、搜索页、动态页、热门视频/排行榜页**7 个页面,可在每个页面下开启插件菜单,查看功能列表
- 「通用」功能主要用于净化顶栏,对全站所有页面生效
- 脚本默认用户已登录,大会员下(开发环境)体验最佳
- 脚本默认开启少数基础功能,其余功能由用户自行设定
Expand Down
16 changes: 16 additions & 0 deletions src/pages/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,22 @@ if (host === 't.bilibili.com') {
.single-card.floor-card {
border: none !important;
}`
} else if (href.includes('bilibili.com/v/popular/')) {
borderRadiusCSS = `
#nav-searchform,
.nav-search-content,
.v-popover-content,
.van-popover,
.v-popover,
.bili-header .search-panel,
.bili-header .header-upload-entry,
.upinfo-btn-panel *,
.rank-list .rank-item > .content > .img,
.card-list .video-card .video-card__content, .video-list .video-card .video-card__content,
.fixed-sidenav-storage div,
.fixed-sidenav-storage a {
border-radius: 3px !important;
}`
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/popular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ if (location.href.includes('bilibili.com/v/popular/')) {
width: unset !important;
height: unset !important;
margin: 4px !important;
border-radius: 6px !important;
border-radius: 6px;
overflow: hidden !important;
}
.rank-list .rank-item > .content > .img .num {
Expand Down

0 comments on commit 8997582

Please sign in to comment.