从浏览器控制台访问 WebExtensions API
Access WebExtensions API from the Browser Console
可能吗?我想在 REPL 中试验一些功能。
您不能从 Browser Console 开始这样做。
但是,如果正在调试 WebExtension(通过 about:debugging
➞Debug 访问),您可以使用 Add-on Debugger and your WebExtension has a background page (i.e. you have a defined a page
or script
in a background
entry in your manifest.json:
可能吗?我想在 REPL 中试验一些功能。
您不能从 Browser Console 开始这样做。
但是,如果正在调试 WebExtension(通过 about:debugging
➞Debug 访问),您可以使用 Add-on Debugger and your WebExtension has a background page (i.e. you have a defined a page
or script
in a background
entry in your manifest.json: