我在每个页面加载时运行以下清单。
问题是它只在刷新页面时才会运行
当我点击链接并再次导航时,myscript.js
将不起作用
那是为什么?
感谢
{
"name": "BrowserActionExtension",
"version": "0.0.1",
"manifest_version": 2,
"browser_action": {
"default_title": "That's the tool tip",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": [ "<all_urls>" ],
"js": [ "myscript.js" ],
"run_at": "document_end"
}
],
"permissions": [
"tabs",
"<all_urls>"
]
}
答案 0 :(得分:0)