Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

I want manage firefox settings ( about:config ) programmatically

  • 8 отговора
  • 5 имат този проблем
  • 1 изглед
  • Последен отговор от Adel Rehan

more options

Hey guys,

I think that my question is clear from the title :D ... but i will explain it.

I'm trying to make program to change Proxy ... I made it to change Google Chrome and Internet Explorer Proxy but Firefox Proxy didn't change.

I tried to change Firefox Proxy from :

C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\*.default\prefs.js

but I can't change the proxy so please, help me to edit Firefox Proxy settings using C# or VB.NET.

Hey guys, I think that my question is clear from the title :D ... but i will explain it. I'm trying to make program to change Proxy ... I made it to change Google Chrome and Internet Explorer Proxy but Firefox Proxy didn't change. I tried to change Firefox Proxy from : C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\*.default\prefs.js but I can't change the proxy so please, help me to edit Firefox Proxy settings using C# or VB.NET.

Избрано решение


You could use a user.js file and swap that for another version if you need to change the proxy setting. The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.

Прочетете този отговор в контекста 👍 1

Всички отговори (8)

more options

What you can do is create several profiles. Each profile would have their own settings as you want them to be.

https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles

more options

Избрано решение


You could use a user.js file and swap that for another version if you need to change the proxy setting. The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.

more options

Thanks guys for help ... these topics helped me.

The big thank for cor-el

Edit user.js does what I want ... I tried to edit prefs.js but it didn't work.

Променено на от Adel Rehan

more options

Adel Rehan said

Edit user.js does what I want ... I tried to edit prefs.js but it didn't work.

You can't edit the file when Firefox is open. Firefox will write over the file when it closes.

more options

You are right ... I think the only way to change proxy settings is making add-on to change it.

But if you have any other ways to change it told me :D

more options

When are you trying to change the Firefox (proxy) connection setting?

If you want to change these settings while Firefox is running then you can look at the extensions I posted above. With Firefox closed you could use the user.js file or possibly edit the prefs.js file. To make sure that you have the correct syntax it is best to make the changes on the about:config page and make a backup copy of the corresponding lines in the prefs.js file.

If you have various copies of the user.js file each with a complete set of user_pref() lines to set the connection then you can place such a copy in the Firefox profile folder to switch the connection setting and restart Firefox.

more options

Man, I want to change proxy settings programmatically via vb.net or c# like Hide IP Easy not manually.

Regards

more options

Thanks guys the problem is solved.

Променено на от Adel Rehan