Home Software Customizing Firefox Search Engines (Feat. SearXNG)

Customizing Firefox Search Engines (Feat. SearXNG)

by n8ur
  • Install the “local” SearXNG extension that’s available for Firefox. Go to Settings/Search, then click “Find More Search Engines” and search for “SearXNG”. You’ll find several listings. The one I started with (in February, 2025) is called “Private – SearXNG”. Install that.
  • Exit Firefox and open a console window, navigating to your profile directory (on Linux, in ~/.mozilla/firefox/<something>.default-release).
  • There’s a file called “search.json.mozlz4”. Make a backup copy.
  • Then run this command:
    python3 -c "import lz4.block; open('search.json', 'wb').write(lz4.block.decompress(open('search.json.mozlz4', 'rb').read()[8:]))"
  • That will decompress the search configuration file. Now run:
    python3 -m json.tool search.json > search_pretty.json
  • That will yield a nicely formatted version of the JSON file. Find the line(s) with the SearXNG URL and edit it to suit your needs, and save the file.
  • Now run these commands to recompress the file:
    python3 -c "import json, sys; json.dump(json.load(open('search_pretty.json')), open('search.json', 'w'))"
    python3 -c "import lz4.block; open('search.json.mozlz4', 'wb').write(b'mozLz40\0' + lz4.block.compress(open('search.json', 'rb').read()))"
  • Now when you restart Firefox, you should have SearXNG available with your customized URL.

You may also like

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WordPress Appliance - Powered by TurnKey Linux