Setting the Default Search Provider on Chrome via a script

前端 未结 4 1142
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 06:39

I am attempting to set various Google Chrome preferences via a script (on both OS X and Windows). I can successfully set a number of preferences, and add bookmarks, by editi

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 07:06

    as mentioned, you should edit the 'Web Data' file, which is an sqlite database.

    To add a search engine, add an entry to the 'keywords' table.
    To change the default search engine, edit the 'Default Search Provider ID' value inside the 'meta' table.

提交回复
热议问题