간단한 검색 확장 프로그램을 작성했습니다. 그것은 Windows에서 잘 작동하지만 Mac에서 잘 작동하지 않습니다. Extension은 newTab 페이지, 홈 페이지 및 기본 검색 공급자를 설정합니다. 그러나 Mac 검색 공급자에서는 변경되지 않습니다 (URL 필드에 입력 할 때마다 검색 주소창을 말합니다), 여전히 Google입니다. 여기 크롬 설정이 Mac에서 작동하지 않음
매니페스트입니다 :{
"name" : "Example",
"short_name" : "example",
"manifest_version" : 2,
"version" : "2.6.1.0",
"description" : "Example Extension Description",
"chrome_settings_overrides" : {
"homepage" : "http://example.com/",
"search_provider" : {
"name": "Example Search Name",
"is_default" : true,
"encoding" : "UTF-8",
"favicon_url": "http://example.com/favicon.png",
"keyword" : "keyword.example.com",
"search_url" : "http://example.com/?q={searchTerms}&gid=SDD316",
"suggest_url" : "http://example.com/suggest.php?q={searchTerms}&gid=SDD316"
},
"startup_pages" : ["http://example.com"]
},
"chrome_url_overrides" : {
"newtab" : "html/newTab.html"
},
"icons" : {
"128" : "icon128.png",
"16" : "icon16.png",
"48" : "icon48.png"
},
"browser_action": {
"default_icon": "w.png",
"default_title": "Example Search",
"default_popup": "html/popup.html"
},
"background" : {
"scripts" : ["js/jquery-3.0.0.min.js", "js/background.js"]
},
"permissions" : ["storage", "http://*/*", "https://*/*", "unlimitedStorage", "chrome://favicon/*", "webRequest", "webRequestBlocking" ,"cookies", "*://*.test.com/*"],
"content_scripts": [
{
"js": [
"js/start.js"
],
"matches": [
"http://example.com/*"
],
"all_frames": false,
"run_at": "document_end"
}]
}
않을까요 주소창에서 chrome_settings_overrides.search_provider
변경 검색? the docs을 인용
오, 내가 그 라인을 놓친 것 같습니다. 검색 주소창을 무시하고 내 검색을 기본값으로 설정할 수있는 방법이 있습니까? – clzola
나는 거기 있다고 생각하지 않는다, 나는 두렵다. 그러나 나는 확실하지 않다. – Xan