Where do chrome/chromium store search keywords?

3

I've setup a number of special search keywords, such as "yt" so I can type "yt foo" in the URL bar and have it search youtube for "foo". Unlike just about everything else, chrome and chromium don't sync these with your google account. I'd like to setup syncing for these myself, but grepping through ~/.config/chromium I can't find any reference to the keyword searches I've setup. I assume they're stored in binary format somewhere... any way to extract them, save them, and be able to import them on another box later? I see a sqlite3 database in there so I figure it might be doable.

Joseph Garvin

Posted 2011-04-18T20:51:22.403

Reputation: 199

Answers

3

The Chrome search keywords are stored in the Web Data SQLite file inside the User Data folder. The exact path depends on the OS you are using:

macOS

~/Library/Application Support/Google/Chrome/Default/Web Data

Windows XP

C:\Documents and Settings\<username>\Local Settings\Application Data\Google\Chrome\User Data\Default\Web Data

Windows Vista / 7 / 10

C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default\Web Data

Linux

~/.config/google-chrome/Default/Web Data

Gaff

Posted 2011-04-18T20:51:22.403

Reputation: 16 863

2

Inside that Web Data SQLite database file, the table keywords has the list of search keywords.

You can edit it using anything that can use SQLite databases (e.g. by hand in Microsoft Access with an SQLite ODBC plugin, scripting a solution with Python's sqlite3 module, etc.)

Unfortunately, Chrome keeps the file locked while it is running, so I don't think an automatic sync solution outside of Chrome would be possible.

If you really want the whole skinny on Chrome's Web Data database, you could comb through that part of the Chromium source code for hints.

rakslice

Posted 2011-04-18T20:51:22.403

Reputation: 2 276