Friday, October 22, 2010

Sync Google Chrome Search Engines

Unfortunately, as of Chrome 8, search engines are not synced as part of the browser sync feature. When dev builds corrupt one's profile, it's obnoxious to manually recreate all keyword searches. Here's the process I used this morning, on OS X, for importing search engines into a new profile:
  • cd Library/Application\ Support/Google/Chrome/Default
  • sqlite3 Web\ Data
  • .mode list
  • .separator |
  • .output /tmp/keywords.psv
  • select * from keywords;
  • .exit
  • edit /tmp/keywords.psv to remove Google, Yahoo and Bing (they're included in new profiles)
  • delete the old Default directory
  • start Chrome
  • configure Sync
  • close Chrome
  • sqlite3 Web\ Data
  • .mode list
  • .separator |
  • .import /tmp/keywords.psv keywords
That's it. If you're importing from an older profile, you might have to manually adjust the export file so that it matches the new keywords table schema.

0 comments: