Google Chrome扩展浏览器&页面操作 [英] Google chrome extension browser & page action
问题描述
有没有办法在已经实现了browser_action的扩展中添加page_action?
我想使用browser_action显示一个弹出列表书签,同时使用page_action为用户提供书签当前页面的方式并将其加载到列表中。 只有应用
, browser_action
, page_action
和主题
直到您的清单。因此,您不能将浏览器操作
和页面操作
放在一起。
//选择一个(或没有)
browser_action:{...},
page_action:{...},
theme:{...},
app:{...},
解决方法
使用两个不同的扩展和 Is there a way to add a page_action in an extension that already implements browser_action? I'd like to use the browser_action to display a popup with a list of bookmarks while use the page_action to give the user a way to bookmark the current page and load it in the list. You can only have one among
Use two different Extensions with cross extension message communication. 这篇关于Google Chrome扩展浏览器&页面操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
参考文献
app
, browser_action
, page_action
and theme
in your manifest till date. So, you can not have browser action
and page action
together.// Pick one (or none)
"browser_action": {...},
"page_action": {...},
"theme": {...},
"app": {...},
Work Around
References