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

Function getScriptName

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

Source from the content-addressed store, hash-verified

43 * @returns {string}
44 */
45export function getScriptName(script) {
46 return script.custom.name || getLocaleString(script.meta, 'name')
47 || `#${script.props.id ?? i18n('labelNoName')}`;
48}
49
50/** @returns {VMInjection.RunAt} without "document-" */
51export function getScriptRunAt(script) {

Callers 6

reportBadScriptsFunction · 0.90
vacuumFunction · 0.90
doCheckUpdateFunction · 0.90
prepareScriptFunction · 0.90
getScriptPrettyUrlFunction · 0.85

Calls 1

getLocaleStringFunction · 0.90

Tested by

no test coverage detected