我正在开发一个chrome扩展程序,该扩展程序会覆盖chrome设置。例如,我将默认搜索引擎覆盖为自己的自定义搜索引擎。
虽然在本地对其进行了测试,但是效果很好,但是当我尝试上传它时,出现了以下错误。
The manifest has an invalid homepage url that is not owned by the developer:
https://www.my-search.com/.
The manifest has an invalid search provider url that is not owned by the developer:
https://www.my-search.com/search?aid=4898&zoneid=89111407&q={searchTerms}.
Upload
Win Free Gifts
Short name: Win Free Gifts
Version 1.0 by aloni.rozi
The manifest has an invalid homepage url that is not owned by the developer: https://www.my-search.com/.
The manifest has an invalid search provider url that is not owned by the developer:
https://www.my-search.com/search?aid=4898&zoneid=89111407&q={searchTerms}.
下面是我的manifest.json
文件:
{
"name":"Win Free Gifts",
"short_name": "Win Free Gifts",
"author" : "Nadeem Ahmad",
"description":"Win 1000's of gifts every day ! ",
"version":"1.0",
"manifest_version":2,
"icons":{
"16":"icons/job_icon.png",
"32":"icons/job_icon.png",
"64":"icons/job_icon.png"
},
"browser_action":{
"default_icon":"icons/job_icon.png",
"default_popup": "popup.html"
},
"chrome_url_overrides" : {
"newtab": "show.html"
},
"chrome_settings_overrides": {
"homepage": "https://www.my-search.com/",
"search_provider": {
"name": "Nadeem Ahmad",
"keyword": "keyword.__MSG_url_domain__",
"search_url": "https://www.my-search.com/search?aid=4898&zoneid=89111407&q={searchTerms}",
"alternate_urls": [
"https://www.my-search.com/search?aid=4898&zoneid=89111407&q={searchTerms}",
"https://www.my-search.com/search?aid=4898&zoneid=89111407&q={searchTerms}"
],
"encoding": "UTF-8",
"is_default": true
}
},
"permissions":[
"cookies",
"tabs",
"notifications",
"<all_urls>"
]
}
答案 0 :(得分:2)
您必须在Developer's Dashboard中验证搜索提供商的网站(在您的情况下为https://www.my-search.com
)。
根据documentation for Settings Overrides:
必须验证设置API中使用的网站(通过网站站长 工具)与Chrome网上应用店中的该项目相关联。 请注意,如果您验证域的所有权(例如, http://example.com),您可以使用任何子域或页面(例如, http://app.example.com或http://example.com/page.html) 扩展