好吧这不显示弹出帮助!!!!当我运行它时,扩展看起来有点白,没有颜色,当我点击它时弹出窗口没有显示。老实说,我还没有得到线索!
{
"name": "Youtube",
"version": "0.0.1",
"manifest_version": 2,
"description": "Youtube",
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"default_locale": "en",
"page_action": {
"default_icon": "icons/icon19.png",
"default_title": "page action demo",
"default_popup": "files/popup.html"
},
"permissions": [
"bookmarks",
"chrome://favicon/",
"clipboardRead",
"clipboardWrite",
"contentSettings",
"contextMenus",
"cookies",
"fileBrowserHandler",
"tts",
"ttsEngine",
"history",
"idle",
"management",
"notifications",
"tabs",
"geolocation"
],
"content_scripts": [
{
"matches": [
"http://www.youtube.com*"
],
"js": [
"js/Youtube.js"
]
}
]
}
答案 0 :(得分:1)
页面操作需要“显示”按钮才能执行任何操作,即您必须为标签调用chrome.pageAction.show
或使用chrome.declarativeContent
进行显示。
归咎于Google瘫痪的页面操作,因此它们现在不直观。
如果您想要一个始终有效的按钮,则需要使用浏览器操作。