I have a Manifest v2 extension that I need to convert to Manifest v3. Within this extension, the user can enter javascript code to be executed in the current page's context.
In manifest v2 I did:
let func = new Function(code)
let result = func()
In manifest v3, it shows a message about unsafe-eval. I read this thread and this one. I may conclude it's definitely not possible to do that with ManifestV3 but it seems strange to me as the code is entered by the user himself, and not downloaded remotely or something like that.
Do I miss something?
Thanks a lot