• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1125
  • Last Modified:

How to change mozilla proxy params?

Hello experts.
please help me.
I need the function or procedure that changes proxy parametres of firefox.
I'm using mozilla activex in delphi.
Thanks.
0
helyonprime96
Asked:
helyonprime96
1 Solution
 
LelikInsideCommented:
You can either parse firefox profile file: %APPDATA%\mozilla\firefox\xxxxxxxx.default\prefs.js
or set it like this:
cd /D "%APPDATA%\Mozilla\Firefox\Profiles"
cd *.default
set ffile=%cd%
echo user_pref("network.proxy.http", "148.233.229.235 ");>>"%ffile%\prefs.js"
echo user_pref("network.proxy.http_port", 3128);>>"%ffile%\prefs.js"
echo user_pref("network.proxy.type", 1);>>"%ffile%\prefs.js"
set ffile=
cd %windir%

Open in new window

0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now