Skip to content

Commit fd0c1d8

Browse files
authored
v4.3.16 (#298)
2 parents 11f4391 + cbe10d8 commit fd0c1d8

File tree

7 files changed

+433
-404
lines changed

7 files changed

+433
-404
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 4.3.16
4+
5+
- 修复:Safari 运行报错问题
6+
37
## 4.3.15
48

59
- 恢复:播放页 自动展开弹幕列表功能

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"p-limit": "^6.2.0",
1919
"pinia": "^2.3.1",
2020
"universal-cookie": "^7.2.2",
21-
"vue": "^3.5.25"
21+
"vue": "^3.5.26"
2222
},
2323
"devDependencies": {
24-
"@eslint/js": "^9.39.1",
24+
"@eslint/js": "^9.39.2",
2525
"@thedutchcoder/postcss-rem-to-px": "^0.0.2",
2626
"@vitejs/plugin-vue": "^5.2.4",
27-
"autoprefixer": "^10.4.22",
28-
"eslint": "^9.39.1",
27+
"autoprefixer": "^10.4.23",
28+
"eslint": "^9.39.2",
2929
"eslint-config-prettier": "^9.1.2",
3030
"eslint-plugin-vue": "^9.33.0",
3131
"globals": "^15.15.0",
@@ -36,9 +36,9 @@
3636
"prettier-plugin-tailwindcss": "^0.6.14",
3737
"stylelint": "^16.26.1",
3838
"stylelint-config-standard-scss": "^14.0.0",
39-
"tailwindcss": "^3.4.18",
39+
"tailwindcss": "^3.4.19",
4040
"typescript": "^5.9.3",
41-
"typescript-eslint": "^8.48.1",
41+
"typescript-eslint": "^8.52.0",
4242
"vite": "^6.4.1",
4343
"vite-plugin-monkey": "^5.0.9",
4444
"vue-tsc": "^2.2.12"

pnpm-lock.yaml

Lines changed: 405 additions & 385 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,11 @@ const menu = () => {
106106
})
107107
}
108108

109-
try {
110-
log(`script start, mode: ${import.meta.env.MODE}, url: ${location.href}`)
111-
loadModules()
112-
main()
113-
menu()
114-
log(`script end`)
115-
} catch (err) {
116-
error('main.ts error', err)
109+
log(`mode: ${import.meta.env.MODE}, url: ${location.href}`)
110+
for (const fn of [loadModules, main, menu]) {
111+
try {
112+
fn()
113+
} catch (err) {
114+
error(`main.ts ${fn.name} error`, err)
115+
}
117116
}

src/modules/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,15 @@ export const loadModules = () => {
199199
loadFilters()
200200
log('loadFilters done')
201201

202-
requestIdleCallback(() => {
202+
// issue #291
203+
const runIdle = (cb: any) => {
204+
if (typeof window.requestIdleCallback === 'function') {
205+
window.requestIdleCallback(cb)
206+
} else {
207+
setTimeout(cb, 10000)
208+
}
209+
}
210+
runIdle(() => {
203211
cleanGMKeys()
204212
log('cleanGMKeys done')
205213
})

src/stores/view.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ export const useDynamicFilterPanelStore = defineStore('DynamicFilterPanel', () =
9393

9494
// 快捷按钮
9595
export const useSideBtnStore = defineStore('SideBtn', () => {
96-
// turn on sideBtn for safari #291
97-
const isSafari = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent)
98-
const isShow = useStorage('bili-cleaner-side-btn-show', isSafari, localStorage)
96+
const isShow = useStorage('bili-cleaner-side-btn-show', false, localStorage)
9997
const show = () => {
10098
isShow.value = true
10199
}

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
userscript: {
1313
name: 'bilibili 页面净化大师',
1414
namespace: 'http://tampermonkey.net/',
15-
version: '4.3.15',
15+
version: '4.3.16',
1616
description:
1717
'净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站',
1818
author: 'festoney8',

0 commit comments

Comments
 (0)