Skip to content

Commit

Permalink
fix: dyn page hide bili-dyn-ornament
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jun 23, 2024
1 parent 5e8a57b commit 2b75c0c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.7.4

- 修复:动态页 隐藏动态右侧饰品

## 3.7.3

- 新增:直播页 隐藏倒计时互动
Expand Down
2 changes: 1 addition & 1 deletion src/rules/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ if (isPageDynamic()) {
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-ornament',
description: '隐藏 动态右侧饰品',
itemCSS: `.bili-dyn-ornament {display: none !important;}`,
itemCSS: `.bili-dyn-ornament, .bili-dyn-item__ornament {display: none !important;}`,
}),
// 隐藏 动态内容中 警告notice, 默认开启
new CheckboxItem({
Expand Down
2 changes: 1 addition & 1 deletion src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if (isPageVideo() || isPagePlaylist()) {
wideScreenLock = true
unsafeWindow.isWide = true
const listener = () => {
window.scrollTo(0, 60)
window.scrollTo(0, 64)
// 监听宽屏按钮出现
waitForEle(document.body, '.bpx-player-ctrl-wide', (node: HTMLElement): boolean => {
return node.className.includes('bpx-player-ctrl-wide')
Expand Down
13 changes: 0 additions & 13 deletions src/utils/tool.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
// export const debounce = <T extends (...args: any[]) => void>(
// func: T,
// wait: number,
// ): ((...args: Parameters<T>) => void) => {
// let timeout: ReturnType<typeof setTimeout>
// return (...args: Parameters<T>): void => {
// clearTimeout(timeout)
// timeout = setTimeout(() => {
// func(...args)
// }, wait)
// }
// }

// 匹配BV号
const bvidPattern = /(BV[1-9A-HJ-NP-Za-km-z]+)/
export const matchBvid = (s: string): string | null => {
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
userscript: {
name: 'bilibili 页面净化大师',
namespace: 'http://tampermonkey.net/',
version: '3.7.3',
version: '3.7.4',
description:
'净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站',
author: 'festoney8',
Expand Down

0 comments on commit 2b75c0c

Please sign in to comment.