Chrome扩展程序弹出不显示?
问题描述:
那么这不显示弹出式帮助!当我运行它时,扩展看起来有点白,没有颜色,当我点击它时弹出窗口不显示。老实说我没有线索!Chrome扩展程序弹出不显示?
{
"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"
]
}
]
}
答
页面动作需要被“显示”为按钮做任何事,即你必须要么叫chrome.pageAction.show
的标签或使用chrome.declarativeContent
表现出来。
责备Google瘫痪页面操作,以便它们现在不直观。
如果您想要一个始终处于活动状态的按钮,则需要使用浏览器操作。