MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / isInjectIntoContent

Function isInjectIntoContent

src/app/service/content/utils.ts:284–286  ·  view source on GitHub ↗
(metadata: SCMetadata)

Source from the content-addressed store, hash-verified

282}
283
284export function isInjectIntoContent(metadata: SCMetadata): boolean {
285 return metadata["inject-into"]?.[0] === "content";
286}
287
288export const getScriptFlag = (uuid: string) => {
289 // scriptFlag 对同一脚本永远一致。重新开启浏览器也不会变。

Callers 3

getUserScriptRegisterFunction · 0.90
getScriptsForTabMethod · 0.90
compilePreInjectScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected