0
我试图让一个网站的Chrome扩展为重定向www.site.com到site.com在Chrome扩展清单中没有www
此清单文件的工作原理。
{
"name" : "MySite Redesign",
"version": "0.1",
"manifest_version": 2,
"description" : "Improves MySite visual design to make the interface cleaner.",
"content_scripts" : [{
"matches" : ["*://www.mysite.com/*"],
"css" : ["style.css"]
}]
}
这不
{
"name" : "MySite Redesign",
"version": "0.1",
"manifest_version": 2,
"description" : "Improves MySite visual design to make the interface cleaner.",
"content_scripts" : [{
"matches" : ["mysite.com/*"],
"css" : ["style.css"]
}]
}
错误读取:
“无法关于“content_scripts加载从 '/用户/ colmtuite的/ dev/mysite的扩展' 的值无效分机[。 0] .matches [0]':Missing scheme separator。“
使用*://*.mysite.com/*。请参阅https://developer.chrome.com/trunk/extensions/match_patterns.html。 – 2013-03-10 05:19:15
我遇到同样的错误,当我尝试。 – colmtuite 2013-03-10 05:23:05
糟糕。 Stackoverflow吃了一个星号:( – 2013-03-10 08:54:21