


The about:config screen never showed my changes. First I tried in ~/.mozilla/firefox/*.default/prefs.js but it didn't load very well. I've been experimenting with which file to insert the prefs into. My Linux version is at the bottom of this post. My goal was to do this by learning to do it with Linux first and then learn the Windows shell which I was not happy about having to do so you saved me some time!
FIREFOX FOR MAC PROXY SETTINGS CODE
I needed this exact piece of code for Windows. I'm sure there is a more efficient/safer way of doing this. The reason I added the rename and delete lines is because I couldn't find a way to overwrite the file once I had removed the proxy line. If it finds it, it deletes the file with the /v parameter. Then looks within it to find the line "user_pref("", 1) ". Type "%ffile%\prefs.js" | findstr /v "user_pref("", 1) " >"%ffile%\prefs_.js"Įxplanation: The code goes and finds the perfs.js file. cd /D "%APPDATA%\Mozilla\Firefox\Profiles" If someone wants to remove the proxy settings, here is some code that will do that for you. Just wanted to post the code in a cleaner format.
