MCPcopy Index your code
hub / github.com/violentmonkey/violentmonkey / getScriptHome

Function getScriptHome

src/common/script.js:14–23  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

12 * @returns {string | undefined}
13 */
14export function getScriptHome(script) {
15 let custom, meta;
16 return (custom = script.custom)[HOMEPAGE_URL]
17 || (meta = script.meta)[HOMEPAGE_URL]
18 || script[INFERRED]?.[HOMEPAGE_URL]
19 || meta.homepage
20 || meta.website
21 || meta.source
22 || custom.from;
23}
24
25/**
26 * @param {VMScript} script

Callers 3

inferScriptSupportUrlFunction · 0.90
inferScriptPropsFunction · 0.90
parseScriptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected