Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotooriKashin/Bilibili-Old
/ functions
Functions
855 in github.com/MotooriKashin/Bilibili-Old
⨍
Functions
855
◇
Types & classes
384
↓ 216 callers
Method
push
添加消息
src/core/toast.ts:107
↓ 108 callers
Method
replace
替换目标节点
src/utils/vdomtool.ts:66
↓ 80 callers
Method
addEventListener
(target: string, type: K, listener: (this: Document, ev: DocumentEventMap[K]) => void)
src/utils/vdomtool.ts:82
↓ 67 callers
Method
error
(...data: any[])
src/core/toast.ts:195
↓ 57 callers
Method
switch
* 新建开关设置 * @param id 用户数据键或链式字符串,链式字符串用来提取深层数据 * @param label 标题 * @param sub 副标题 * @param svg 图标 * @param callback 用户调整设置的回调
src/core/ui.ts:489
↓ 52 callers
Function
jsonCheck
(str: string | T)
src/io/api.ts:3
↓ 47 callers
Method
remove
* 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 callers
Function
objUrl
(url: string, obj: Record<string, string | number | boolean>)
src/utils/format/url.ts:60
↓ 41 callers
Method
shift
弹出第一条消息
src/core/toast.ts:111
↓ 34 callers
Method
appendChild
(node: T)
src/core/ui/utils/popupbox.ts:64
↓ 31 callers
Method
setAttribute
(qualifiedName: string, value: string)
src/core/ui/utils/popupbox.ts:71
↓ 30 callers
Method
get
()
src/core/accesskey.ts:38
↓ 29 callers
Function
addCss
(txt: string, id?: string, parrent?: Node)
src/utils/element.ts:30
↓ 29 callers
Function
poll
(check: () => T, callback: (tar: Exclude<T, null | false | undefined>) => void, delay: number = 100, stop: num
src/utils/poll.ts:8
↓ 29 callers
Method
warning
(...data: any[])
src/core/toast.ts:203
↓ 26 callers
Method
createElement
根据vdom生成真DOM(过滤script标签)
src/utils/vdomtool.ts:22
↓ 24 callers
Function
xhrHook
(url: string | string[], modifyOpen?: (args: XMLHttpRequestOpenParams) => void, modifyResponse?: (response: XM
src/utils/hook/xhr.ts:31
↓ 23 callers
Function
urlObj
(url: string)
src/utils/format/url.ts:73
↓ 20 callers
Method
add
* 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 callers
Method
list
* 可拓展toast,用于需要动态增减消息。 * 无数据时隐藏,有数据时显现。默认为info类型。 * @param data 初始信息,可为空。 * @example * const T = toast.list(); // 生成toast(隐藏)。
src/core/toast.ts:188
↓ 17 callers
Method
toJSON
* 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 callers
Function
alert
(msg: string | string[], title?: string, buttons?: IButton[], fork = false)
src/core/ui/alert.ts:13
↓ 16 callers
Method
fetch
请求片段
src/io/sidx.ts:20
↓ 16 callers
Method
getAttribute
(qualifiedName: string)
src/core/ui/utils/popupbox.ts:74
↓ 16 callers
Method
updateDom
()
src/page/read.ts:172
↓ 15 callers
Method
addSetting
* 添加设置项到容器 * @param item 设置项 * @param i 容器序号
src/core/ui/menu.ts:44
↓ 15 callers
Function
timeFormat
(time: number = new Date().getTime(), type?: boolean)
src/utils/format/time.ts:12
↓ 14 callers
Function
jsonpHook
(url: string | string[], redirect?: (url: string) => string, modifyResponse?: (response: any, url: string, cal
src/utils/hook/node.ts:27
↓ 14 callers
Function
loadScript
(src: string, onload?: () => void)
src/utils/element.ts:48
↓ 14 callers
Function
propertyHook
(target: object, propertyKey: PropertyKey, propertyValue: any, configurable = true)
src/utils/hook/method.ts:75
↓ 13 callers
Function
dispatchCustomEvent
(name: string, detail?: any)
chrome/utils/dispatchcustomevent.ts:6
↓ 13 callers
Method
updateLocation
更新URL而不触发重定向
src/core/url.ts:91
↓ 12 callers
Method
banner
()
src/page/header.ts:118
↓ 12 callers
Method
input
* 创建输入框设置 * @param id 用户数据键或链式字符串,链式字符串用来提取深层数据 * @param label 标题 * @param value 配置数据 * @param sub 副标题 * @param svg 图标 *
src/core/ui.ts:630
↓ 12 callers
Method
primaryMenu
顶栏分区
src/page/header.ts:72
↓ 12 callers
Method
select
* 新建下拉菜单设置 * @param id 用户数据键或链式字符串,链式字符串用来提取深层数据 * @param label 标题 * @param value 配置数据 * @param sub 副标题 * @param svg 图标
src/core/ui.ts:520
↓ 12 callers
Method
sign
* URL签名 * @param searchParams 查询参数,会覆盖url原有参数 * @param api 授权api,**授权第三方登录专用** * @returns 签名后的api
src/io/api-sign.ts:87
↓ 12 callers
Method
value
更新内容
src/core/toast.ts:53
↓ 11 callers
Function
addElement
(tag: T, attribute?: Record<string, string>, parrent?: HTMLElement, innerHTML?: string, top?: boolean, replace
src/utils/element.ts:12
↓ 11 callers
Method
append
(...nodes: (string | Node)[])
src/core/ui/utils/popupbox.ts:61
↓ 11 callers
Method
text
(v: string)
src/core/ui/utils/button.ts:16
↓ 10 callers
Method
getData
()
src/io/sidx.ts:14
↓ 10 callers
Method
getStatus
* 链式获取目标对象的值 * @param key 链式字符串 * @param obj 目标对象(默认为用户数据) * @returns 用户数据 * @example * getStatus('toast.disabled') // userSt
src/core/chain.ts:12
↓ 10 callers
Method
set
(obj: Record<string, string | undefined>)
chrome/utils/escape-header.ts:48
↓ 10 callers
Function
timeFormat
(time = (/* @__PURE__ */ new Date()).getTime(), type)
tampermonkey/comment/main.user.js:354
↓ 10 callers
Function
webpackHook
(len: number, pos: number, rpc: (code: string) => typeof code, params: [string, string, string] = ["t", "e", "
src/utils/hook/webpack.ts:46
↓ 9 callers
Function
debug
(...data: any[])
src/utils/debug.ts:11
↓ 9 callers
Method
encode
* 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 callers
Function
postMessage
(data: any, resolve?: Function, reject: Function = () => { })
chrome/utils/message.ts:7
↓ 9 callers
Method
show
* 显示设置面板 * @param id 设置项注册id,id不在可选项时可以使用强制断言 * @example * this.show('accessKey.token') // 显示设置面板并滚动到【账户授权】那一项 * this.show(<'acces
src/core/ui.ts:714
↓ 9 callers
Function
toObject
(input: string)
src/utils/type.ts:2
↓ 8 callers
Method
button
* 创建按钮设置 * @param id 用来索引的字符串 * @param label 标题 * @param callback 按钮点击回调 * @param sub 副标题 * @param text 按钮文字 * @param sv
src/core/ui.ts:662
↓ 8 callers
Method
init
* 新建设置项 * @param id keyof typeof {@link userStatus} * @param title 标题 * @param sub 副标题 * @param svg 图标
src/core/ui/item.ts:13
↓ 8 callers
Method
insertAdjacentElement
(where: InsertPosition, element: Element)
src/core/ui/utils/popupbox.ts:51
↓ 8 callers
Method
keys
* 列出键名数组 * 原生Storage.key只返回但索引,感觉意义不大。 * @returns 键名数组
src/core/storage.ts:21
↓ 8 callers
Method
replaceChildren
(...nodes: (string | Node)[])
src/core/ui/utils/popupbox.ts:68
↓ 8 callers
Function
switchVideo
(callback: Function)
src/core/observer.ts:27
↓ 8 callers
Function
unitFormat
(num: number = 0)
src/utils/format/unit.ts:8
↓ 8 callers
Method
value
添加值
src/core/ui/item.ts:21
↓ 7 callers
Method
adblock
(arr: IApiWebshowLocsResponse[])
src/page/index.ts:207
↓ 7 callers
Method
addCallback
用户数据回调
src/core/user.ts:58
↓ 7 callers
Method
addCard
* 添加设置分组 * @param name 分组名称 * @returns 分组设置项容器
src/core/ui/menu.ts:33
↓ 7 callers
Method
decode
* 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 callers
Function
defineRes
* 修改xhr响应 * @param target 目标XMLHttpRequest * @param res GM.xmlHttpRequest响应 * @param v 目标XMLHttpRequest对应的回调
src/core/network-mock.ts:11
↓ 7 callers
Method
getValue
* 读取本地存储 * @param key 主键 * @param def 默认值
chrome/utils/gm.ts:82
↓ 7 callers
Method
setValue
* 修改本地存储 * @param key 主键 * @param value 内容
chrome/utils/gm.ts:92
↓ 7 callers
Method
unshift
添加置顶消息
src/core/toast.ts:115
↓ 6 callers
Method
bindChange
* 监听设置改动 * @param key 设置键 * @param callback 设置项变动时执行的回调,新值将作为第一个参数传入 * @returns 用于取消监听的回调
src/core/user.ts:42
↓ 6 callers
Method
filter
* 解码playurl的下载数据 * @param playinfo playurl返回值(json)
src/core/download/playinfo.ts:103
↓ 6 callers
Method
lookupType
(type: string)
src/io/grpc/BAPIAppPlayurl/v1/playurl.ts:15
↓ 6 callers
Function
sizeFormat
(size: number = 0)
src/utils/format/size.ts:9
↓ 6 callers
Method
toObject
* 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 callers
Method
toast
(delay: number, type: ToastType = 'info', ...data: any[])
src/core/toast.ts:163
↓ 6 callers
Method
updateSessionRules
【扩展限定】更新网络拦截规则
chrome/utils/gm.ts:131
↓ 5 callers
Function
addCss
(txt, id, parrent)
tampermonkey/comment/main.user.js:318
↓ 5 callers
Method
aidDatail
从`IAidDatail`中提取
src/core/video-info.ts:49
↓ 5 callers
Function
buvid
()
src/io/android.ts:19
↓ 5 callers
Function
getCookies
()
src/utils/cookie.ts:5
↓ 5 callers
Method
getItem
* 读取 * @param key 目标键名 * @returns 格式化后的数据
src/core/storage.ts:13
↓ 5 callers
Method
init
()
src/page/wild.ts:21
↓ 5 callers
Function
loadScript
(src, onload)
tampermonkey/comment/main.user.js:330
↓ 5 callers
Method
removeEventListener
(target: string, type: K)
src/utils/vdomtool.ts:106
↓ 5 callers
Method
setItem
* 添加/修改 * @param key * @param value
src/core/storage.ts:36
↓ 5 callers
Method
setStatus
* 链式设置目标对象的值 * @param key 链式字符串 * @param value 用户数据 * @param obj 目标对象(默认为用户数据) * @example * setStatus('toast.disabled', false
src/core/chain.ts:29
↓ 4 callers
Method
addModifyArgument
添加播放器启动参数修改命令
src/core/player.ts:39
↓ 4 callers
Function
biliQuickLogin
()
src/core/quickLogin.ts:4
↓ 4 callers
Method
clear
净化url
src/core/url.ts:59
↓ 4 callers
Method
decodePlayinfo
解码playinfo
src/core/download.ts:43
↓ 4 callers
Method
destory
清空数据
src/core/download.ts:210
↓ 4 callers
Function
fileRead
(accept?: string, multiple?: boolean)
src/utils/file.ts:82
↓ 4 callers
Method
flushToast
刷新toast,多用于重构页面后刷新显示
src/core/bilibili-old.ts:67
↓ 4 callers
Method
init
()
tampermonkey/comment/main.user.js:653
↓ 4 callers
Method
insertAdjacentHTML
(position: InsertPosition, text: string)
src/core/ui/utils/popupbox.ts:55
↓ 4 callers
Function
integerFormat
(num: number, byte: number = 2)
src/utils/format/integer.ts:10
↓ 4 callers
Method
loadEmbedPlayer
引导旧播放器
src/core/player.ts:190
↓ 4 callers
Method
popNode
节点出栈
src/utils/htmlvnode.ts:170
↓ 4 callers
Method
push
添加拦截请求头
chrome/utils/escape-header.ts:23
↓ 4 callers
Function
removeJsonphook
* 取消jsonphook或脚本拦截,只在注册时设置了`once=false`时才需要使用本方法! * @param id 要取消注册的id,该值为注册时返回值,一个id只允许使用一次!
src/utils/hook/node.ts:136
↓ 4 callers
Function
removeJsonphook
(id)
tampermonkey/comment/main.user.js:575
↓ 4 callers
Method
removeScanned
移除已扫描字符长度 默认1位
src/utils/htmlvnode.ts:176
next →
1–100 of 855, ranked by callers