您可以拥有以下内容:
"content_scripts": [
{
"css": [ "style1.css" ],
"matches": ["http://domain1.com"],
"run_at": "document_end"
}
],
但是否可以为两个或多个域做到这一点?例如以下内容:(我知道这是行不通的,但为了举例)
"content_scripts1": [
{
"css": [ "style1.css" ],
"matches": ["http://domain1.com"],
"run_at": "document_end"
}
],
"content_scripts2": [
{
"css": [ "style2.css" ],
"matches": ["http://domain2.com"],
"run_at": "document_end"
}
],
那么这可能吗?如果是这样,怎么办?