Does anyone know how to programatically add favorites to Firefox. I am not talking from the browser either. I mean from an external program. Is there some API I can call to do it? I have seen the javascript function to add from the browser. I am not a javascript guy. Is there an object I can use to make that function work outside of the browser. A guy at work is writing a Statement of Work for an installation development. As part of the installation, the vendor wants to bookmark his site in IE and Firefox if present. It's a web app that runs on a local web server. Windows Installer allows you to run what are called custom actions. I can use VBScripts, javascript, call functions from DLLs. I can even write my own DLL if I need to. I am trying to avoid opening the bookmarks.htm file and injecting the text to add the favorite. I am not sure how Firefox would treat it. Let me know if anyone knows how to do this.
Well, I'm no hacker, but I just tried copying and modifying one of the entries the in the bookmarks.htm file like this: Code: <DT>[url="http://www.google.com"]GOOGLE[/url] It seems to work just fine. If you want to get a more definitive answer I would recommend checking out the firefox dev center here.