4/16/2008

Locking Mozilla Firefox Setting

Locking Mozilla Firefox Setting

1. Create a file anywhere on your hard drive, called mozilla.txt
2. Edit mozilla.txt in text editor and begin the firest line with 2 forward slashes.
3. Use lockPref instead of user_pref. They should be in the same form as you see in your profile's prefs.js file. For ex. // lockPref("network.proxy.type", 0); lockPref("browser.startup.homepage", "http://www.google.com/");
4. The file must be encoded and renamed. The encoding is a simple “byte-shifting” with an offset of 13. Online encoder http://www.alain.knaff.lu/%7Eaknaff/howto/MozillaCustomization/cgi/byteshf.cgi
5. The resulting file should be named mozilla.cfg. Save that in the same directory as firefox.exe. 6. In C:\Program Files\Mozilla Firefox\greprefs\ there’s a file called all.js. Open all.js in a text editor, and add the following line at the end of it: pref("general.config.filename", "mozilla.cfg");


Mozilla.txt example
//
lockPref("network.proxy.type",1);
lockPref("network.proxy.http", "192.168.1.31");
lockPref("network.proxy.http_port", 9999);
lockPref("network.proxy.ssl", "192.168.1.31");
lockPref("network.proxy.ssl_port", 9999);
lockPref("network.proxy.gopher", "192.168.1.31");
lockPref("network.proxy.gopher_port", 9999);
lockPref("network.proxy.socks", "192.168.1.31");
lockPref("network.proxy.socks_port", 9999);
lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.1.0/24");
lockPref("network.proxy.share_proxy_settings", true);

沒有留言: