- Edit
searches.toml- %s is replaced by search terms
- Execute
python3 main.py - Open displayed URL such as
https://localhost:XXXXwith Firefox- The URL on your terminal may be clickable while pressing some modifier keys
- Click URL bar or search box
- Type some text
- Click a search engine icon with green plus tips
- Optionally, add search keywords in Firefox's preferences
Pros.
- Easy to custom 5FCE ize search URLs, such as adding language parameters
- Easy to transfer to other machines or profiles
- Easy to maintain; only a TOML file
- Works offline, providing the privacy needed for company internal search URLs
- Not an addon. After you added search engines, you can remove the downloaded repository and forget.
Cons.
- No sync with Firefox Sync Currently, writing a public browser extension is the only way to add your custom search URLs to Firefox and sync with Firefox Sync.
Firefox installs search engines defined by OpenSearch description format. And it doesn't install them from local pages.
This project creates all necessary files for you and serves them.
Handwritten example of OpenSearch description format is in sample directory.
Run cd sample && python3 -m http.server to see its working.
https://developer.mozilla.org/en-US/docs/Web/XML/Guides/OpenSearch