Chrome has the feature to automatically add search engine when it detects an input field on websites. After using Chrome months, it often resutls a bunch of search engines stayed in the settings. And the setting page does not provide a convinient way to remove them.
The editting the Web Data as SQLite file did not seem to work anymore. Chrome seems to revert all the changes when restart.
To make it even worse, it seems that the DOM tree is not accessable from the development console on the setting page, so even a bookmarklet could not work. Neighter does Chrome provide an API to access the search engines.
Please note tha the following solution did not seem to work anymore in 2024. I now recommend to update the SQLite file related to search engines setting directly. Probably use DB Browser for SQLite. And the file related to the search engine is %LOCALAPPDATA%\Google\Chrome\User Data\Default\Web Data on Windows (other platforms).
Use Don't add custom search engines.
Note that in order to run the script, execute the code in the console of Developer Tool (⌘⌥J).
- Use
export-search-engines.jsto dump the current search engines, generatingbackup.json. - Optionally use
remove-auto-search-engines.jsto remove the search engines which has more than 6 charcters for keyword frombackup.json, generatingoutput.json. - Use
clear-search-engines.jsto remove all current search engines from Chrome. - Import
output.jsonback to Chrome.
I tried running export-search-engines.js and just got the following error:
Uncaught ReferenceError: settings is not definedDoes this require the "Don't add..." extension to be installed first?