This tool simplifies adding and managing Firefox Search Shortcuts by enabling:
- Importing DuckDuckGo Bangs as search shortcuts
- Adding custom search shortcuts easily
- Attaching optimized favicons to each shortcut
Install dependencies using Bun:
bun install-
Locate your Firefox profile directory Open
about:profilesin Firefox and copy the root directory path of the profile where you want to add custom search engines. -
Convert
search.json.mozlz4to JSON Extract and convert thesearch.json.mozlz4file from the profile to a plain JSON file (search.json.mozlz4.json). You can use tools such as serj-kzv/mozlz4-edit for this purpose. -
Place the converted JSON file Copy
search.json.mozlz4.jsoninto the root directory of this project. -
Configure custom search engines Modify
config.tsto add, edit, or remove custom search engines as needed. -
Generate the output JSON Run the following command to generate
output.jsonwith updated engines and favicons:bun run start
Important
Close Firefox before replacing the file to avoid conflicts or file corruption.
- Replace the Firefox search engines file
Compress
output.jsonback tosearch.json.mozlz4format and replace the original file in your Firefox profile directory.
