본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

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

자세히 살펴보기

Having trouble with lockPref certain settings in Firefox4.

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

more options

I've been trying to lock down some settings using a .cfg file in Firefox 4. The file contents are below. Here's what I did:

  • I created mozilla.cfg.txt with the settings displayed below.
  • I used the moz-byteshift.pl script to encode the file.
  • I put the file name reference into all.js and double checked the offset was 13.
  • I copied both files to the firefox prog folder and greprefs folders respectively.
  • I also deployed override.ini to stop the initial IE import wizard.

Here's what I put in the file. What am I doing wrong? Let me know. Thanks.

//Don't check for automatic updates:
lockPref("app.update.enabled", false);

// May want to enhance with:
//   lockPref("extensions.update.enabled", false);
//   lockPref("app.update.autoUpdateEnabled", false);

//Set proxy type to enable proxy.pac file:
lockPref("network.proxy.type", 2);

//Don't check if FF is default browser:
lockPref("browser.shell.checkDefaultBrowser", false);

//Disable FF4.x hardware acceleration:
//Doesn't look like these settings effect earlier vers.
lockPref("layers.acceleration.disabled", true);
lockPref("gfx.direct2d.disabled", true);
I've been trying to lock down some settings using a .cfg file in Firefox 4. The file contents are below. Here's what I did: * I created mozilla.cfg.txt with the settings displayed below. * I used the moz-byteshift.pl script to encode the file. * I put the file name reference into all.js and double checked the offset was 13. * I copied both files to the firefox prog folder and greprefs folders respectively. * I also deployed override.ini to stop the initial IE import wizard. Here's what I put in the file. What am I doing wrong? Let me know. Thanks. <pre><nowiki>//Don't check for automatic updates: lockPref("app.update.enabled", false); // May want to enhance with: // lockPref("extensions.update.enabled", false); // lockPref("app.update.autoUpdateEnabled", false); //Set proxy type to enable proxy.pac file: lockPref("network.proxy.type", 2); //Don't check if FF is default browser: lockPref("browser.shell.checkDefaultBrowser", false); //Disable FF4.x hardware acceleration: //Doesn't look like these settings effect earlier vers. lockPref("layers.acceleration.disabled", true); lockPref("gfx.direct2d.disabled", true);</nowiki></pre>

글쓴이 cor-el 수정일시

모든 댓글 (1)

more options

Firefox 4 doesn't use a separate file all.js. In Firefox 43 all those files are packed in one omni.jar (ZIP) archive.

You can place a file local-settings.js in the defaults\pref folder to specify using mozilla.cfg.

See:

If you need to initialize other files in a new profile then you can create a \defaults\profile\ template folder.