5

I use several search engines in my firefox, each with some 1-3 letter shortcut such as "w" for wikipedia or "m" for google maps.

I need to slightly adjust the URL of one of the seach engines. So I need to know where they are saved and how to edit them.

I faintly remember there was some XML file in the past versions but it seems that have changed over time. How can I edit them in the new Firefox Quantum? Or create my own customized one?

2

I don't think that's possible with Firefox Quantum anymore. I remember doing the same many years ago - editing 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:

grep -Ri 'some search engine name' /home/yahol/.mozilla/firefox/9s05hy1j.default/

None of the returned files referred to search engines.

There are some alternate solutions however, that will allow you generating a new search engine with custom:

Mycroft Project
Ready2Search

I've tested Ready2Search and it works. When creating a search engine with an icon, make sure that image file has an extension (.gif, .jpeg, .png), otherwise it will spill errors about incorrect/unsupported file format. I think Mycroft Project might be more intuitive and user-friendly. And has great customization options.

  • Just tried Mycroft Project, it works perfectly. I couldn't get Ready2Search to work, but I'm probably just dumb. Thanks! – vaindil Feb 28 at 17:24
2

In Ubuntu 16, firefox 58, the configuration file is compressed into .mozlz4 format and located in /home/[user]/.mozilla/firefox/[xxxxxxxx].default named as search.json.mozlz4.

So the file path is /home/[user]/.mozilla/firefox/[xxxxxxxx].default/search.json.mozlz4.

Your can decompress and compress this file with 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)
1

You can edit and configure your quick search engines via the bookmark configuration. Tested in FF Quantum 63.0.3. Simply

  1. open the bookmark sidebar via [Ctrl]+[b]
  2. filter for the bookmark you want to edit (eg. 'wikip')
  3. right-click the quick search bookmark (a quick search bookmark is a regular bookmark with a 'keyword' in the properties
  4. edit the url and keyword to your needs (see screenshot below)

enter image description here

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.