创建新选项卡而不是面板

发布于 2025-01-08 15:56:46 字数 170 浏览 3 评论 0原文

我已经浏览了 Add-on SDK 1.5 的示例,但还没有看到任何类似网页的东西,插件可以与用户交互并从他那里获取输入。只有名为 panel 的对话框,我真的很想在选项卡中拥有一个真实的页面,就像 google-chrome 插件一样。

是否可以通过附加 SDK (1.5) 实现?

I have gone through the examples of Add-on SDK 1.5 yet haven't seen anything like a web page which the addon can interact with the user and get input from him. There are only dialogs called panels and I really would like to have a real page in a tab like in google-chrome addons.

Is it even possible with the Add-on SDK (1.5)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘落散花 2025-01-15 15:56:46

当然你可以创建一个选项卡,你使用 tabs.open()。至于与此选项卡交互 - 您可能需要在打开选项卡之前注册内容脚本。就像使用 Google Chrome 一样。

Of course you can create a tab, you use tabs.open(). As to interacting with this tab - you probably want to register a content script before opening the tab. Just like you would do it with Google Chrome.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文