13

I use several search engines in Firefox Quantum, each with 1 - 3 letter shortcuts (w for Wikipedia, m for Google Maps, etc.), and I need to modify the URL of one of the search engines.

I remember there was some XML file in past versions, but this seems to have changed over time:

  • Where are these now saved and how do I edit them?
  • Can I create a custom one?
5

A quick search bookmark is a regular bookmark with a 'keyword' in the properties, so you can edit and configure your quick search engines via the bookmark configuration. Tested in FF Quantum 63.0.3. Simply

  1. Open Bookmark Sidebar via CTRL+B
  2. Filter for the bookmark you want to edit [wikipe] and right-click it
  3. Edit the URL and keyword to your needs: Screenshot
| improve this answer | |
5

In Ubuntu 16, FireFox 58, the configuration file is compressed into the .mozlz4 format:

~/.mozilla/firefox/<name>.default/search.json.mozlz4

You can decompress/compress this file via the python lz4 library:

  • Decompress:
    import lz4.block as lb
    
    infile = '/path/to/infile'
    outfile = '/path/to/outfile'
    
    inf = open(infile, 'rb')
    inf.read(8)
    data = lb.decompress(inf.read())
    outf = open(outfile, 'wb')
    outf.write(data)
    
  • Compress:
    import lz4.block as lb
    
    infile = '/path/to/infile'
    outfile = '/path/to/outfile'
    
    inf = open(infile, 'rb')
    data = lb.compress(inf.read())
    data = b'mozLz40\0' + data
    outf = open(outfile, 'wb')
    outf.write(data)
    
| improve this answer | |
3

I don't think it's possible with Firefox Quantum anymore, although I remember doing the same many years ago by editing the XML file manually to adjust search settings (see here).

  • I've tried to find a file containing search engine settings by looking for a phrase with one of my search engine's name recursively in Firefox profile directory, however none of the returned files referred to search engines:
    grep -Ri 'some search engine name' ~/.mozilla/firefox/<name>.default/
    

Alternative solutions that allow the generation of a new custom search engine:

  • Mycroft Project:
    Intuitive and user-friendly, with great customization options
  • Ready2Search:
    When creating a search engine with an icon, ensure the image file has an extension (.gif, .jpeg, .png, etc.), else it will error with incorrect/unsupported file format.
| improve this answer | |
  • Just tried Mycroft Project, it works perfectly. I couldn't get Ready2Search to work, but I'm probably just dumb. Thanks! – vaindil Feb 28 '19 at 17:24
1

An easy way to edit .mozlz4 files is using the mozlz4-edit FireFox Addon

| improve this answer | |
0

I migrated to Brave Browser recently which provides far better customization for search engines than Firefox.

| improve this answer | |
  • 1
    This is not an answer, but a comment – JW0914 Jun 26 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.