MCPcopy Index your code

hub / github.com/doocs/cose / functions

Functions158 in github.com/doocs/cose

↓ 24 callersFunctionconvertAvatarToBase64
(avatarUrl, referer)
packages/detection/src/utils.js:8
↓ 17 callersFunctionwaitForElement
(selector, timeout = 15000)
apps/extension/src/background.js:837
↓ 14 callersFunctionwaitFor
(selector, timeout = 10000)
apps/extension/src/background.js:3221
↓ 12 callersFunctionsleep
(ms)
apps/extension/src/background.js:786
↓ 11 callersFunctionts
()
apps/extension/scripts/reload-extension.mjs:17
↓ 11 callersFunctionwaitForTab
(tabId, timeout = 60000)
apps/extension/src/background.js:3781
↓ 8 callersFunctiongetEditorArea
(editor)
packages/core/src/platforms/wechat.js:15
↓ 7 callersFunctionaddTabToSyncGroup
(tabId, windowId)
apps/extension/src/background.js:379
↓ 7 callersFunctioninjectUtils
* 在页面中注入通用工具函数 * @param {object} chrome - Chrome API 对象 * @param {number} tabId - 目标 tab ID * @returns {Promise<void>}
packages/core/src/utils.js:63
↓ 5 callersFunctioncheck
()
apps/extension/src/background.js:1856
↓ 5 callersFunctionsendOffscreenMessage
(msg, timeoutMs = 15000)
apps/extension/src/background.js:100
↓ 5 callersFunctionsetInputValue
(el, value)
apps/extension/src/background.js:3235
↓ 4 callersFunctioncreateEditor
({ textContent = '', top = 0, height = 120, width = 640, classes = [], } = {})
tests/wechat.test.mjs:6
↓ 4 callersFunctionsendMessage
(type, payload)
apps/extension/src/inject.js:75
↓ 4 callersFunctionsleep
(ms)
packages/core/src/platforms/alipayopen.js:20
↓ 3 callersFunctioncheckToken
()
packages/core/src/platforms/wechat.js:272
↓ 3 callersFunctionflushParagraph
()
apps/extension/src/background.js:1188
↓ 3 callersFunctionpickWechatBodyProseMirrorCandidate
(nodes, { titleInput, titleEditor } = {})
packages/core/src/platforms/wechat.js:24
↓ 2 callersFunctioncheckPlatformLogin
(platform)
apps/extension/src/background.js:588
↓ 2 callersFunctioncreateTitleInput
({ top = 0, height = 48 } = {})
tests/wechat.test.mjs:35
↓ 2 callersFunctiondetectByApi
(platformId, config)
packages/detection/src/utils.js:104
↓ 2 callersFunctionfillTitle
()
packages/core/src/platforms/zhihu.js:62
↓ 2 callersFunctionfindAndClickRichTextBtn
()
apps/extension/src/background.js:3708
↓ 2 callersFunctionhandleDialog
()
apps/extension/src/background.js:2354
↓ 2 callersFunctioninitDynamicRules
()
apps/extension/src/background.js:287
↓ 2 callersFunctionisWechatTitleEditor
(editor, titleEditor)
packages/core/src/platforms/wechat.js:19
↓ 2 callersFunctionpickWechatBodyProseMirror
* 后台改版后可能存在多个 `.ProseMirror`(标题区也可能是 ProseMirror), * `querySelector('.ProseMirror')` 常会命中标题编辑器,导致正文 HTML 被贴进标题。 * 另外,正文编辑器有时会比标题编辑器晚挂载,这时也要继续等待,
packages/core/src/platforms/wechat.js:59
↓ 2 callersFunctionwaitAndClickButton
(textMatcher, timeout = 5000)
packages/core/src/platforms/zhihu.js:41
↓ 2 callersFunctionwaitForEditor
(timeout = 10000)
apps/extension/src/background.js:797
↓ 2 callersFunctionwaitForElement
(predicate, timeout = 10000)
packages/core/src/platforms/toutiao.js:17
↓ 1 callersFunction_waitForOffscreenReady
* Ping the offscreen document until it responds, confirming its listener is active.
apps/extension/src/background.js:35
↓ 1 callersFunctionbuildSafariExtension
(options: BuildOptions)
apps/extension/scripts/cli.ts:171
↓ 1 callersFunctionbuildWithVite
(options: BuildOptions)
apps/extension/scripts/cli.ts:74
↓ 1 callersFunctioncacheAlipayUserInfo
()
apps/extension/src/content.js:182
↓ 1 callersFunctioncheckAllComplete
()
packages/core/src/platforms/zhihu.js:288
↓ 1 callersFunctioncheckAllPlatforms
(platforms)
apps/extension/src/background.js:492
↓ 1 callersFunctioncheckAllPlatformsProgressive
(platforms, tabId)
apps/extension/src/background.js:519
↓ 1 callersFunctioncheckLoginByCookie
(platformId, config)
packages/detection/src/utils.js:40
↓ 1 callersFunctionconvertMarkdownToTwitterHtml
* 将 Markdown 转换为 Twitter Articles 支持的 HTML * @param {string} markdown - 原始 Markdown 内容 * @param {object} marked - marked 库实例 * @returns {string} -
packages/core/src/platforms/twitter.js:157
↓ 1 callersFunctionconvertToBase64WithFallback
(avatarUrl)
packages/detection/src/platforms/douban.js:3
↓ 1 callersFunctioncopyResources
()
apps/extension/scripts/cli.ts:87
↓ 1 callersFunctioncreateTwitterRenderer
* 自定义 Markdown 渲染器 * 将 Markdown 转换为 Twitter Articles 支持的 HTML 格式
packages/core/src/platforms/twitter.js:20
↓ 1 callersFunctiondebounceReload
()
apps/extension/scripts/reload-extension.mjs:106
↓ 1 callersFunctiondetectUser
(platformId)
packages/detection/src/detect.js:60
↓ 1 callersFunctionensureMarkdownEditor
* 确保编辑器处于 Markdown 模式 * 1. 检查是否有"切换 MD 编辑器"按钮 * 2. 如果有,点击切换到 MD 编辑器 * 3. 如果没有,说明已经是 MD 编辑器 * @returns {Promise<boolean>} 是否成功进入 MD 编辑器模式
packages/core/src/platforms/tencentcloud.js:38
↓ 1 callersFunctionensureOffscreen
()
apps/extension/src/background.js:10
↓ 1 callersFunctionfill
()
packages/core/src/platforms/wangyihao.js:17
↓ 1 callersFunctionfill
()
packages/core/src/platforms/juejin.js:19
↓ 1 callersFunctionfill
()
packages/core/src/platforms/csdn.js:20
↓ 1 callersFunctionfill
()
apps/extension/src/background.js:3249
↓ 1 callersFunctionfillContent
()
packages/core/src/platforms/toutiao.js:38
↓ 1 callersFunctionfillContent
()
packages/core/src/platforms/zhihu.js:57
↓ 1 callersFunctionfindSwitchToMDButton
* 检查当前是否需要切换到 MD 编辑器 * 判断依据:页面中是否存在"切换 MD 编辑器"的按钮 * - 如果存在,说明当前是富文本编辑器,需要切换 * - 如果不存在(显示"切换 富文本 编辑器"),说明已经是 MD 编辑器 * @returns {HTMLElement|null} 返
packages/core/src/platforms/tencentcloud.js:19
↓ 1 callersFunctiongenManifest
(options: BuildOptions)
apps/extension/scripts/cli.ts:127
↓ 1 callersFunctiongetCodeMirror
* 获取 CodeMirror 实例 * @param {number} maxWait 最大等待时间(毫秒) * @returns {Promise<CodeMirror|null>}
packages/core/src/platforms/tencentcloud.js:91
↓ 1 callersFunctionhandleApiFetch
* API fetch: makes a request with credentials: 'include' and returns the response body. * Used for API calls that need cookies automatically attached
apps/extension/src/offscreen.js:97
↓ 1 callersFunctionhandleDetectCnblogs
* Cnblogs detection: fetch account.cnblogs.com/user/userinfo in document context. * Cookies are sent automatically (unlike service worker fetch which
apps/extension/src/offscreen.js:165
↓ 1 callersFunctionhandleDetectCto51
* 51CTO detection: fetch home.51cto.com/space and parse with DOMParser. * Same approach as 爱贝壳 extension - runs in document context (offscreen).
apps/extension/src/offscreen.js:125
↓ 1 callersFunctionhandleDetectXiaohongshu
* Xiaohongshu detection: fetch creator API in document context. * Cookies are sent automatically with credentials: 'include'.
apps/extension/src/offscreen.js:194
↓ 1 callersFunctionhandleFetch
(payload)
apps/extension/src/offscreen.js:53
↓ 1 callersFunctionhandleMessage
(request, sender)
apps/extension/src/background.js:445
↓ 1 callersFunctionhandleWarmFetch
* Warm-up fetch: makes a request with credentials: 'include' to trigger * the browser's cookie restoration (SSO, session cookies, etc.) * Returns st
apps/extension/src/offscreen.js:72
↓ 1 callersFunctionisBlockElement
(line)
apps/extension/src/background.js:1172
↓ 1 callersFunctionmain
()
apps/extension/scripts/convert-icons.mjs:27
↓ 1 callersFunctionparseMarkdownToHtml
(md)
apps/extension/src/background.js:1033
↓ 1 callersFunctionpickCandidate
(nodes, { titleInput, titleEditor } = {})
packages/core/src/platforms/wechat.js:68
↓ 1 callersFunctionprocessLatexFormulas
* 处理数学公式 * 将 LaTeX 公式转换为可显示的格式 * Twitter Articles 不原生支持 LaTeX,这里转换为图片或文本格式
packages/core/src/platforms/twitter.js:134
↓ 1 callersFunctionreadManifest
(manifestPath: string)
apps/extension/scripts/cli.ts:56
↓ 1 callersFunctionsetContentWithConfirm
(editor, iframe, content, timeout = 3000)
apps/extension/src/background.js:2246
↓ 1 callersFunctionstartDialogChecker
()
apps/extension/src/background.js:2421
↓ 1 callersFunctionstopDialogChecker
()
apps/extension/src/background.js:2433
↓ 1 callersFunctionsyncAll
()
apps/extension/src/inject.js:256
↓ 1 callersFunctionsyncToPlatform
(platformId, content)
apps/extension/src/background.js:657
↓ 1 callersFunctionwaitForBodyEditor
(timeout = 15000)
packages/core/src/platforms/wechat.js:104
↓ 1 callersFunctionwaitForEditorReady
(timeout = 15000)
apps/extension/src/background.js:2204
↓ 1 callersFunctionwaitForImageUploadComplete
* 等待图片上传完成 * @param {number} tabId - 标签页 ID * @param {number} timeout - 超时时间(毫秒) * @returns {Promise<boolean>}
packages/core/src/platforms/zhihu.js:275
↓ 1 callersFunctionwaitForMdButton
(timeout = 15000)
apps/extension/src/background.js:2452
↓ 1 callersFunctionwaitForRichTextButton
(timeout = 2000)
apps/extension/src/background.js:2481
FunctionaddTask
(taskData, onProgress, onComplete)
apps/extension/src/inject.js:220
FunctioncreatePlaceholderPng
(size)
apps/extension/scripts/convert-icons.mjs:14
FunctiondetectAlipayUser
()
packages/detection/src/platforms/alipay.js:7
FunctiondetectAliyunUser
()
packages/detection/src/platforms/aliyun.js:10
FunctiondetectBilibiliUser
()
packages/detection/src/platforms/bilibili.js:10
FunctiondetectCSDNUser
()
packages/detection/src/platforms/csdn.js:10
FunctiondetectCTO51User
()
packages/detection/src/platforms/cto51.js:8
FunctiondetectCnblogsUser
()
packages/detection/src/platforms/cnblogs.js:8
FunctiondetectCnblogsViaOffscreen
* Cnblogs detection via offscreen document. * Offscreen has document context so cookies are sent automatically.
apps/extension/src/background.js:250
FunctiondetectCto51ViaOffscreen
* 51CTO detection via offscreen document (爱贝壳 approach). * Offscreen has document context so DOMParser is available. * Includes retry logic in case
apps/extension/src/background.js:215
FunctiondetectDoubanUser
()
packages/detection/src/platforms/douban.js:53
FunctiondetectElecfansUser
()
packages/detection/src/platforms/elecfans.js:9
FunctiondetectHuaweiCloudUser
()
packages/detection/src/platforms/huaweicloud.js:9
FunctiondetectHuaweiDevUser
()
packages/detection/src/platforms/huaweidev.js:11
FunctiondetectInfoQUser
()
packages/detection/src/platforms/infoq.js:8
FunctiondetectJianshuUser
()
packages/detection/src/platforms/jianshu.js:7
FunctiondetectMediumUser
()
packages/detection/src/platforms/medium.js:7
FunctiondetectModelScopeUser
()
packages/detection/src/platforms/modelscope.js:11
FunctiondetectOSChinaUser
()
packages/detection/src/platforms/oschina.js:9
FunctiondetectQianfanUser
()
packages/detection/src/platforms/qianfan.js:9
FunctiondetectSegmentFaultUser
()
packages/detection/src/platforms/segmentfault.js:8
FunctiondetectSohuUser
()
packages/detection/src/platforms/sohu.js:7
next →1–100 of 158, ranked by callers