How to Programmatically Configure FoxyProxy(Extension) in Firefox on Launch?

Hello Firefox community,

I’m currently working on a project where I need to programmatically configure the FoxyProxy extension in Firefox every time I launch the browser. My goal is to dynamically set proxy configurations (e.g., IP, port, username, and password) before or during the browser startup.

I’ve explored several approaches, but I’ve run into challenges with each method

Does anyone know of a more effective way to achieve this? Any guidance on modifying FoxyProxy settings on launch or programmatically managing Firefox extensions in general would be greatly appreciated!

Thank you for your help!