Skip to content

Commit

Permalink
Merge pull request #19 from festoney8/dev
Browse files Browse the repository at this point in the history
merge dev to main, v2.3.3 fix bug
  • Loading branch information
festoney8 authored Jan 14, 2024
2 parents 64c25bd + 817118e commit e0dfc30
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 2.3.3

- 新增:动态页 支持隐藏左栏
- 新增:动态页 支持隐藏左栏 隐藏稍后再看
- 新增:动态页 自动展开折叠动态
- 新增:动态页 支持过滤动态(隐藏Tag、预约、转发、带货)
- 优化:普通播放页 关闭弹幕栏 支持去黑边(实验性)
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const main = async () => {
GROUPS.forEach((e) => e.disableGroup())
isGroupEnable = false
} else {
GROUPS.forEach((e) => e.enableGroup(true))
GROUPS.forEach((e) => e.enableGroup(false))
isGroupEnable = true
}
}
Expand Down
23 changes: 16 additions & 7 deletions src/pages/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ const dynamicUnfold = () => {
debug(`unfold ${dynFoldNodes.length} fold`)
}
}
document.addEventListener('DOMContentLoaded', () => {
setInterval(unfold, 500)
})
setInterval(unfold, 500)
}

const basicItems: CheckboxItem[] = []
Expand Down Expand Up @@ -181,22 +179,33 @@ if (location.host === 't.bilibili.com' || location.href.includes('bilibili.com/o
`.bili-dyn-ornament {display: none !important;}`,
),
)
// 隐藏 动态内容内 警告notice, 默认开启
// 隐藏 动态内容中 警告notice, 默认开启
centerItems.push(
new CheckboxItem(
'hide-dynamic-page-bili-dyn-dispute',
'隐藏 动态内容内 警告notice',
'隐藏 动态内容中 警告notice',
true,
undefined,
false,
`.bili-dyn-content__dispute {display: none !important;}`,
),
)
// 隐藏 动态内容内 话题Tag
// 隐藏 动态内容中 稍后再看按钮
centerItems.push(
new CheckboxItem(
'hide-dynamic-page-bili-dyn-watchlater',
'隐藏 动态内容中 稍后再看按钮',
false,
undefined,
false,
`.bili-dyn-card-video__mark {display: none !important;}`,
),
)
// 隐藏 动态内容中 话题Tag
centerItems.push(
new CheckboxItem(
'hide-dynamic-page-bili-dyn-topic',
'隐藏 动态内容内 话题Tag',
'隐藏 动态内容中 话题Tag',
false,
undefined,
false,
Expand Down

0 comments on commit e0dfc30

Please sign in to comment.