Skip to content

Commit

Permalink
delete: dyn page sidebar feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed May 23, 2024
1 parent e4dd613 commit a47c25f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 3.6.1

- 移除:动态页隐藏新版反馈,适配网页变动
- 更新:Readme

## 3.6.0
Expand Down
11 changes: 2 additions & 9 deletions src/rules/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,25 +560,18 @@ if (isPageDynamic()) {

// 右下角
const sidebarItems = [
// 隐藏 新版反馈, 默认开启
new CheckboxItem({
itemID: 'hide-dynamic-page-sidebar-feedback',
description: '隐藏 新版反馈',
defaultStatus: true,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:nth-child(1) {visibility: hidden !important;}`,
}),
// 隐藏 回到旧版, 默认开启
new CheckboxItem({
itemID: 'hide-dynamic-page-sidebar-old-version',
description: '隐藏 回到旧版',
defaultStatus: true,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:nth-child(2) {visibility: hidden !important;}`,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:first-child {visibility: hidden !important;}`,
}),
// 隐藏 回顶部
new CheckboxItem({
itemID: 'hide-dynamic-page-sidebar-back-to-top',
description: '隐藏 回顶部',
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:nth-child(3) {visibility: hidden !important;}`,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:last-child {visibility: hidden !important;}`,
}),
]
dynamicGroupList.push(new Group('dynamic-sidebar', '页面右下角 小按钮', sidebarItems))
Expand Down

0 comments on commit a47c25f

Please sign in to comment.