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

Function matchUserScript

src/background/utils/script.js:49–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47export const removedScripts = [];
48/** @return {boolean|?RegExpExecArray} */
49export const matchUserScript = text => !/^\s*</.test(text) /*HTML*/ && METABLOCK_RE.exec(text);
50
51const arrayType = {
52 default: () => [],

Callers 2

confirmInstallFunction · 0.90
parseMetaFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected