mirror of
https://github.com/naiyQAQ/fanqie-assistant.git
synced 2026-10-21 10:24:47 +00:00
feat & refactor: 支持app端签名的请求,支持右键操作书架书籍,逻辑大幅重构,更改默认的设备逻辑为自动注册,支持载入某些书籍内置的CSS、支持跳转正文注释等等
This commit is contained in:
1 parent
2f2ee606c0
commit
3586b01dbb
47 files changed
+3594
-243
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { HookConfig } from "../config"
|
||||
import { settings } from "../settings"
|
||||
|
||||
// disable report
|
||||
const blackList = [
|
||||
@@ -16,6 +17,8 @@ const BLOCKED_BODY = JSON.stringify({
|
||||
})
|
||||
|
||||
function checkBlack(url: string): boolean {
|
||||
// 设置里关掉后即时放行,无需刷新页面
|
||||
if (!settings.blockReport) return false
|
||||
return blackList.some(black => url.includes(black))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user