Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Adding default settings throuh mozilla.cfg not working on firefox-26

  • 1 답장
  • 15 이 문제를 만남
  • 27 보기
  • 최종 답변자: cor-el

more options

I would like to set proxy settings to all the firefox process for non-root users, Earlier i used to do this by adding below lines in /usr/lib64/firefox/defaults/preferences/channel-perf.js

pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg");

and creating mozilla.cfg file in /usr/lib64/firefox directory as followd

lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "127.0.0.1") lockPref("network.proxy.http_port", 3128) lockPref("network.proxy.share_proxy_settings", true)


How do i achieve the same in Firefox-26

I tried the following

In the /usr/lib64/firefox/browser/defaults/preferences directory, i created file channel-pref.js as follows pref("general.config.obscure_value", 0) pref("general.config.filename", "mozilla.cfg");


create mozilla.cfg file in /usr/lib64/firefox directory , then using moz-byteshift.pl i modified the mozilla.cfg moz-byteshift.pl -s 13 <mozilla.cfg.txt >mozilla.cfg

but it still doesn't work ,

Any information on how to make this work

I would like to set proxy settings to all the firefox process for non-root users, Earlier i used to do this by adding below lines in /usr/lib64/firefox/defaults/preferences/channel-perf.js pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); and creating mozilla.cfg file in /usr/lib64/firefox directory as followd lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "127.0.0.1") lockPref("network.proxy.http_port", 3128) lockPref("network.proxy.share_proxy_settings", true) How do i achieve the same in Firefox-26 I tried the following In the /usr/lib64/firefox/browser/defaults/preferences directory, i created file channel-pref.js as follows pref("general.config.obscure_value", 0) pref("general.config.filename", "mozilla.cfg"); create mozilla.cfg file in /usr/lib64/firefox directory , then using moz-byteshift.pl i modified the mozilla.cfg moz-byteshift.pl -s 13 <mozilla.cfg.txt >mozilla.cfg but it still doesn't work , Any information on how to make this work

모든 댓글 (1)

more options

It is best to leave the channel-prefs.js file alone and create a specific local-settings.js file to specify using mozilla.cfg in the defaults\pref folder where you also find the channel-prefs.js file.

pref("general.config.filename", "mozilla.cfg");

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes

Note that only the first pref line you posted is ending with a semi colon.
Also make sure that the first line of mozilla.cfg is a comment line as this line is always skipped.

//
lockPref("network.proxy.type", 1);
lockPref("network.proxy.http", "127.0.0.1");
lockPref("network.proxy.http_port", 3128);
lockPref("network.proxy.share_proxy_settings", true);