MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getNameURI

Function getNameURI

src/background/utils/script.js:179–185  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

177}
178
179export function getNameURI(script) {
180 const ns = script.meta.namespace || '';
181 const name = script.meta.name || '';
182 let nameURI = encodeFilename(`${ns}\n${name}\n`);
183 if (!ns && !name) nameURI += script.props.id || '';
184 return nameURI;
185}
186
187/**
188 * @param {VMScript} script

Callers 3

db.jsFile · 0.90
getScriptFunction · 0.90
parseScriptFunction · 0.90

Calls 1

encodeFilenameFunction · 0.90

Tested by

no test coverage detected