Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

Fix 'trusted-suppress-native-method' — grouping in regex matcher does not work

Open Yuki2718 opened this issue 1 year ago • 1 comments

japscan.lol#%#//scriptlet('trusted-suppress-native-method', 'Document.prototype.querySelectorAll', '/(#navpromo|#OhNo)/', 'abort') => Could not parse the signature matcher: '/(#navpromo' value type can't be inferred: SyntaxError: Unexpected token '/', "/(#navpromo" is not valid JSON

Screenshot

suppress-method

Yuki2718 avatar Jan 08 '25 14:01 Yuki2718

It's a bit confusing with the syntax for multiple matchers.

Yuki2718 avatar Jan 08 '25 14:01 Yuki2718