So, I was tasked with removing proxy settings from Firefox because of Webroot Desktop Proxy. Removing them from the %Programfiles% directory was easy, the hard part was the user prefs.js. Anyways, here’s a little script I created to remove Proxy settings and set them to No Proxy.
cd /D “%APPDATA%\Mozilla\Firefox\Profiles" cd *.default set ffile=%cd% type “%ffile%\prefs.js” | findstr /v “user_pref(“network.proxy.type”, 2);">"%ffile%\prefs_.js” type “%ffile%\prefs.js” | findstr /v “user_pref(“network.proxy.type”, 0);">"%ffile%\prefs_.js” ren “prefs.js” “prefs_.
Continue reading