Are you executing remote code or arbitrary strings?
You can no longer execute external logic using chrome.scripting.executeScript({code: '...'}), eval(), and new Function().
Move all external code (JS, Wasm, CSS) into your extension bundle.
Update script and style references to load resources from the extension bundle.
Use chrome.runtime.getURL() to build resource URLs at runtime.
js小书签,需要用到此功能
V2的
API
为chrome.tabs.executeScript
,支持 V3的API
为chrome.scripting.executeScript()
,明显不支持Manifest V3 migration checklist 里说到:
另外,Tampermonkey 的 issue #644 中也说明了还不支持