Though I'm now curious to why you thought I ment otherwise ...
Because you think deleting "search.json.mozlz4" file is enough.
It seems more than likely to me that you are thinking/talking about a different version of FF than I specified in my initial message (v52). It certainly would explain the confusion.
Ah, you're right. I wasn't paying attention to the version number.
For older version, use the `window.external.AddSearchProvider(url)`
You know, it /almost/ feels like the FF guys really didn't want me to be
able to add my own. :-D
You're not wrong. They never want us to be able to do so.
And finally, they "lock" the search engine list file with a
compression which no way for a user to specifically
uncompress/recompress it.
:-) I've been looking at that too - if only to see whats actually in that "search.json.mozlz4" file. Presumably the same as in the "search.json"
file, but you never know. The compression seems to be LZ4, and I did manage to find a Windows DLL for it (on GitHub). I also found some references to programs (in sourcefile format) to at least unpack it.
I wrote such a program myself.
A short piece of C code to call "lz4.dll",
You should open "search.json.mozlz4" and "search.json" in a text editor
and compare them.
The LZ4 compressor is little better than RLE. You can read a lot of the
text strings under mozlz4
It does make you wonder what they were thinking when they applied LZ4 :-)
Writing the compressor call, would be good exercise for you :-)
gcc -c lz4.c
gcc -c unmoz.c
gcc -o unmoz.exe lz4.o unmoz.o
You could try a text search on "mozLz40" and see what pops up
in the unpacked tarball.
361MB (unpack with 7ZIP or whatever)
http://releases.mozilla.org/pub/firefox/releases/90.0/source/firefox-90.0.source.tar.xz
You should open "search.json.mozlz4" and "search.json" in a text editor
and compare them.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 480 |
Nodes: | 16 (2 / 14) |
Uptime: | 253:26:13 |
Calls: | 9,532 |
Files: | 13,650 |
Messages: | 6,138,130 |