MCPcopy Create free account

hub / github.com/MotooriKashin/Bilibili-Old / functions

Functions855 in github.com/MotooriKashin/Bilibili-Old

↓ 216 callersMethodpush
添加消息
src/core/toast.ts:107
↓ 108 callersMethodreplace
替换目标节点
src/utils/vdomtool.ts:66
↓ 80 callersMethodaddEventListener
(target: string, type: K, listener: (this: Document, ev: DocumentEventMap[K]) => void)
src/utils/vdomtool.ts:82
↓ 67 callersMethoderror
(...data: any[])
src/core/toast.ts:195
↓ 57 callersMethodswitch
* 新建开关设置 * @param id 用户数据键或链式字符串,链式字符串用来提取深层数据 * @param label 标题 * @param sub 副标题 * @param svg 图标 * @param callback 用户调整设置的回调
src/core/ui.ts:489
↓ 52 callersFunctionjsonCheck
(str: string | T)
src/io/api.ts:3
↓ 47 callersMethodremove
* Removes a nested object from this type. * @param object Nested object to remove * @returns `this` * @throws {TypeError} If arguments
src/io/grpc/BAPIMetadata/metadata.ts:196
↓ 43 callersFunctionobjUrl
(url: string, obj: Record<string, string | number | boolean>)
src/utils/format/url.ts:60
↓ 41 callersMethodshift
弹出第一条消息
src/core/toast.ts:111
↓ 34 callersMethodappendChild
(node: T)
src/core/ui/utils/popupbox.ts:64
↓ 31 callersMethodsetAttribute
(qualifiedName: string, value: string)
src/core/ui/utils/popupbox.ts:71
↓ 30 callersMethodget
()
src/core/accesskey.ts:38
↓ 29 callersFunctionaddCss
(txt: string, id?: string, parrent?: Node)
src/utils/element.ts:30
↓ 29 callersFunctionpoll
(check: () => T, callback: (tar: Exclude<T, null | false | undefined>) => void, delay: number = 100, stop: num
src/utils/poll.ts:8
↓ 29 callersMethodwarning
(...data: any[])
src/core/toast.ts:203
↓ 26 callersMethodcreateElement
根据vdom生成真DOM(过滤script标签)
src/utils/vdomtool.ts:22
↓ 24 callersFunctionxhrHook
(url: string | string[], modifyOpen?: (args: XMLHttpRequestOpenParams) => void, modifyResponse?: (response: XM
src/utils/hook/xhr.ts:31
↓ 23 callersFunctionurlObj
(url: string)
src/utils/format/url.ts:73
↓ 20 callersMethodadd
* Adds a nested object to this type. * @param object Nested object to add * @returns `this` * @throws {TypeError} If arguments are inva
src/io/grpc/BAPIMetadata/metadata.ts:187
↓ 18 callersMethodlist
* 可拓展toast,用于需要动态增减消息。 * 无数据时隐藏,有数据时显现。默认为info类型。 * @param data 初始信息,可为空。 * @example * const T = toast.list(); // 生成toast(隐藏)。
src/core/toast.ts:188
↓ 17 callersMethodtoJSON
* Converts this message type to a message type descriptor. * @param [toJSONOptions] JSON conversion options * @returns Message type descript
src/io/grpc/BAPIMetadata/metadata.ts:178
↓ 16 callersFunctionalert
(msg: string | string[], title?: string, buttons?: IButton[], fork = false)
src/core/ui/alert.ts:13
↓ 16 callersMethodfetch
请求片段
src/io/sidx.ts:20
↓ 16 callersMethodgetAttribute
(qualifiedName: string)
src/core/ui/utils/popupbox.ts:74
↓ 16 callersMethodupdateDom
()
src/page/read.ts:172
↓ 15 callersMethodaddSetting
* 添加设置项到容器 * @param item 设置项 * @param i 容器序号
src/core/ui/menu.ts:44
↓ 15 callersFunctiontimeFormat
(time: number = new Date().getTime(), type?: boolean)
src/utils/format/time.ts:12
↓ 14 callersFunctionjsonpHook
(url: string | string[], redirect?: (url: string) => string, modifyResponse?: (response: any, url: string, cal
src/utils/hook/node.ts:27
↓ 14 callersFunctionloadScript
(src: string, onload?: () => void)
src/utils/element.ts:48
↓ 14 callersFunctionpropertyHook
(target: object, propertyKey: PropertyKey, propertyValue: any, configurable = true)
src/utils/hook/method.ts:75
↓ 13 callersFunctiondispatchCustomEvent
(name: string, detail?: any)
chrome/utils/dispatchcustomevent.ts:6
↓ 13 callersMethodupdateLocation
更新URL而不触发重定向
src/core/url.ts:91
↓ 12 callersMethodbanner
()
src/page/header.ts:118
↓ 12 callersMethodinput
* 创建输入框设置 * @param id 用户数据键或链式字符串,链式字符串用来提取深层数据 * @param label 标题 * @param value 配置数据 * @param sub 副标题 * @param svg 图标 *
src/core/ui.ts:630
↓ 12 callersMethodprimaryMenu
顶栏分区
src/page/header.ts:72
↓ 12 callersMethodselect
* 新建下拉菜单设置 * @param id 用户数据键或链式字符串,链式字符串用来提取深层数据 * @param label 标题 * @param value 配置数据 * @param sub 副标题 * @param svg 图标
src/core/ui.ts:520
↓ 12 callersMethodsign
* URL签名 * @param searchParams 查询参数,会覆盖url原有参数 * @param api 授权api,**授权第三方登录专用** * @returns 签名后的api
src/io/api-sign.ts:87
↓ 12 callersMethodvalue
更新内容
src/core/toast.ts:53
↓ 11 callersFunctionaddElement
(tag: T, attribute?: Record<string, string>, parrent?: HTMLElement, innerHTML?: string, top?: boolean, replace
src/utils/element.ts:12
↓ 11 callersMethodappend
(...nodes: (string | Node)[])
src/core/ui/utils/popupbox.ts:61
↓ 11 callersMethodtext
(v: string)
src/core/ui/utils/button.ts:16
↓ 10 callersMethodgetData
()
src/io/sidx.ts:14
↓ 10 callersMethodgetStatus
* 链式获取目标对象的值 * @param key 链式字符串 * @param obj 目标对象(默认为用户数据) * @returns 用户数据 * @example * getStatus('toast.disabled') // userSt
src/core/chain.ts:12
↓ 10 callersMethodset
(obj: Record<string, string | undefined>)
chrome/utils/escape-header.ts:48
↓ 10 callersFunctiontimeFormat
(time = (/* @__PURE__ */ new Date()).getTime(), type)
tampermonkey/comment/main.user.js:354
↓ 10 callersFunctionwebpackHook
(len: number, pos: number, rpc: (code: string) => typeof code, params: [string, string, string] = ["t", "e", "
src/utils/hook/webpack.ts:46
↓ 9 callersFunctiondebug
(...data: any[])
src/utils/debug.ts:11
↓ 9 callersMethodencode
* Encodes a message of this type. Does not implicitly {@link Type#verify|verify} messages. * @param message Message instance or plain object
src/io/grpc/BAPIMetadata/metadata.ts:231
↓ 9 callersFunctionpostMessage
(data: any, resolve?: Function, reject: Function = () => { })
chrome/utils/message.ts:7
↓ 9 callersMethodshow
* 显示设置面板 * @param id 设置项注册id,id不在可选项时可以使用强制断言 * @example * this.show('accessKey.token') // 显示设置面板并滚动到【账户授权】那一项 * this.show(<'acces
src/core/ui.ts:714
↓ 9 callersFunctiontoObject
(input: string)
src/utils/type.ts:2
↓ 8 callersMethodbutton
* 创建按钮设置 * @param id 用来索引的字符串 * @param label 标题 * @param callback 按钮点击回调 * @param sub 副标题 * @param text 按钮文字 * @param sv
src/core/ui.ts:662
↓ 8 callersMethodinit
* 新建设置项 * @param id keyof typeof {@link userStatus} * @param title 标题 * @param sub 副标题 * @param svg 图标
src/core/ui/item.ts:13
↓ 8 callersMethodinsertAdjacentElement
(where: InsertPosition, element: Element)
src/core/ui/utils/popupbox.ts:51
↓ 8 callersMethodkeys
* 列出键名数组 * 原生Storage.key只返回但索引,感觉意义不大。 * @returns 键名数组
src/core/storage.ts:21
↓ 8 callersMethodreplaceChildren
(...nodes: (string | Node)[])
src/core/ui/utils/popupbox.ts:68
↓ 8 callersFunctionswitchVideo
(callback: Function)
src/core/observer.ts:27
↓ 8 callersFunctionunitFormat
(num: number = 0)
src/utils/format/unit.ts:8
↓ 8 callersMethodvalue
添加值
src/core/ui/item.ts:21
↓ 7 callersMethodadblock
(arr: IApiWebshowLocsResponse[])
src/page/index.ts:207
↓ 7 callersMethodaddCallback
用户数据回调
src/core/user.ts:58
↓ 7 callersMethodaddCard
* 添加设置分组 * @param name 分组名称 * @returns 分组设置项容器
src/core/ui/menu.ts:33
↓ 7 callersMethoddecode
* Decodes a message of this type. * @param reader Reader or buffer to decode from * @param [length] Length of the message, if known beforeha
src/io/grpc/BAPIMetadata/metadata.ts:249
↓ 7 callersFunctiondefineRes
* 修改xhr响应 * @param target 目标XMLHttpRequest * @param res GM.xmlHttpRequest响应 * @param v 目标XMLHttpRequest对应的回调
src/core/network-mock.ts:11
↓ 7 callersMethodgetValue
* 读取本地存储 * @param key 主键 * @param def 默认值
chrome/utils/gm.ts:82
↓ 7 callersMethodsetValue
* 修改本地存储 * @param key 主键 * @param value 内容
chrome/utils/gm.ts:92
↓ 7 callersMethodunshift
添加置顶消息
src/core/toast.ts:115
↓ 6 callersMethodbindChange
* 监听设置改动 * @param key 设置键 * @param callback 设置项变动时执行的回调,新值将作为第一个参数传入 * @returns 用于取消监听的回调
src/core/user.ts:42
↓ 6 callersMethodfilter
* 解码playurl的下载数据 * @param playinfo playurl返回值(json)
src/core/download/playinfo.ts:103
↓ 6 callersMethodlookupType
(type: string)
src/io/grpc/BAPIAppPlayurl/v1/playurl.ts:15
↓ 6 callersFunctionsizeFormat
(size: number = 0)
src/utils/format/size.ts:9
↓ 6 callersMethodtoObject
* Creates a plain object from a message of this type. Also converts values to other types if specified. * @param message Message instance *
src/io/grpc/BAPIMetadata/metadata.ts:280
↓ 6 callersMethodtoast
(delay: number, type: ToastType = 'info', ...data: any[])
src/core/toast.ts:163
↓ 6 callersMethodupdateSessionRules
【扩展限定】更新网络拦截规则
chrome/utils/gm.ts:131
↓ 5 callersFunctionaddCss
(txt, id, parrent)
tampermonkey/comment/main.user.js:318
↓ 5 callersMethodaidDatail
从`IAidDatail`中提取
src/core/video-info.ts:49
↓ 5 callersFunctionbuvid
()
src/io/android.ts:19
↓ 5 callersFunctiongetCookies
()
src/utils/cookie.ts:5
↓ 5 callersMethodgetItem
* 读取 * @param key 目标键名 * @returns 格式化后的数据
src/core/storage.ts:13
↓ 5 callersMethodinit
()
src/page/wild.ts:21
↓ 5 callersFunctionloadScript
(src, onload)
tampermonkey/comment/main.user.js:330
↓ 5 callersMethodremoveEventListener
(target: string, type: K)
src/utils/vdomtool.ts:106
↓ 5 callersMethodsetItem
* 添加/修改 * @param key * @param value
src/core/storage.ts:36
↓ 5 callersMethodsetStatus
* 链式设置目标对象的值 * @param key 链式字符串 * @param value 用户数据 * @param obj 目标对象(默认为用户数据) * @example * setStatus('toast.disabled', false
src/core/chain.ts:29
↓ 4 callersMethodaddModifyArgument
添加播放器启动参数修改命令
src/core/player.ts:39
↓ 4 callersFunctionbiliQuickLogin
()
src/core/quickLogin.ts:4
↓ 4 callersMethodclear
净化url
src/core/url.ts:59
↓ 4 callersMethoddecodePlayinfo
解码playinfo
src/core/download.ts:43
↓ 4 callersMethoddestory
清空数据
src/core/download.ts:210
↓ 4 callersFunctionfileRead
(accept?: string, multiple?: boolean)
src/utils/file.ts:82
↓ 4 callersMethodflushToast
刷新toast,多用于重构页面后刷新显示
src/core/bilibili-old.ts:67
↓ 4 callersMethodinit
()
tampermonkey/comment/main.user.js:653
↓ 4 callersMethodinsertAdjacentHTML
(position: InsertPosition, text: string)
src/core/ui/utils/popupbox.ts:55
↓ 4 callersFunctionintegerFormat
(num: number, byte: number = 2)
src/utils/format/integer.ts:10
↓ 4 callersMethodloadEmbedPlayer
引导旧播放器
src/core/player.ts:190
↓ 4 callersMethodpopNode
节点出栈
src/utils/htmlvnode.ts:170
↓ 4 callersMethodpush
添加拦截请求头
chrome/utils/escape-header.ts:23
↓ 4 callersFunctionremoveJsonphook
* 取消jsonphook或脚本拦截,只在注册时设置了`once=false`时才需要使用本方法! * @param id 要取消注册的id,该值为注册时返回值,一个id只允许使用一次!
src/utils/hook/node.ts:136
↓ 4 callersFunctionremoveJsonphook
(id)
tampermonkey/comment/main.user.js:575
↓ 4 callersMethodremoveScanned
移除已扫描字符长度 默认1位
src/utils/htmlvnode.ts:176
next →1–100 of 855, ranked by callers