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

Mozilla 도움말 검색

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

자세히 살펴보기

Prefs names for about:preferences#home

  • 15 답장
  • 1 이 문제를 만남
  • 6 보기
  • 최종 답변자: Lexx76

more options

I want untick all checkboxes about:preferences#home here (not myself). Can I have prefs for my pref.js file for get rid Web Search , Top Sites, Recommended by Pocket, Highlights , Snippets, and usage statistics collection also?

I want untick all checkboxes about:preferences#home here (not myself). Can I have prefs for my pref.js file for get rid Web Search , Top Sites, Recommended by Pocket, Highlights , Snippets, and usage statistics collection also?

선택된 해결법

Did you place autoconfig.js in the defaults\pref folder as well? without this file Firefox doesn't know what file to load.

This requires a autoconfig.js file in the "defaults\pref" folder where the channel-prefs.js file is located that specifies to use autoconfig.cfg.

//
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
  • autoconfig.cfg and autoconfig.js need to start with a comment line (//)
  • autoconfig.js needs to use Unix line endings (LF instead of CR/LF).

From:

<<< NOTE: The autoconfig.js file must use Unix end-of-line (LF), even on Windows systems with Firefox 60 or higher. >>>
The data URI I posted above creates this autoconfig.js file with %0A line endings.

You can verify this in a Hex file viewing utility.

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (15)

more options

Hello Lexx76,

Wouldn't you rather set the homepage to open a blank page ?

https://support.mozilla.org/en-US/kb/how-to-set-the-home-page

more options

McCoy said

Hello Lexx76, Wouldn't you rather set the homepage to open a blank page ? https://support.mozilla.org/en-US/kb/how-to-set-the-home-page

No, I just want uncheck all checkboxes in settings. But not myself. Because I have several profiles for testing and want uncheck all boxes for whole browser

more options

You can check these prefs on the about:config page to see which are user set (bold).

browser.newtabpage.activity-stream.

Quote: usage statistics collection

Do you mean datareporting prefs? You can look at prefs like these:

datareporting.healthreport.service.enabled
datareporting.healthreport.uploadEnabled
datareporting.policy.dataSubmissionEnabled
more options

Yes, data collection, but also this ticks https://i.imgur.com/scM5byU.png

more options

You can use the Inspector (Ctrl+Shift+C) to find what preferences is controlled by a checkbox.

글쓴이 cor-el 수정일시

more options

cor-el said

You can use the Inspector (Ctrl+Shift+C) to find what preferences is controlled by a checkbox.

Thanks! But how do I can use these prefs in pref.js file? For completely disable this?

more options

You can use an autoconfig.cfg file in the Firefox program folder to disable this feature completely and have these checkboxes grayed. In autoconfig.cfg you can use the lockPref() function to lock a pref to a specific value. In user.js you can only set a startup value via user_pref() (replace lockPref by user_pref in the below posted code). The user can still modify prefs initialized via user.js via the about:config page or via Options/Preferences.


Content of autoconfig.cfg in Firefox program folder. This file need to start with a comment line, so paste all the text in this plain text file

// autoconfig.cfg in Firefox program folder

/*Web Search*/
lockPref("browser.newtabpage.activity-stream.showSearch", false);

/*Top Sites*/
lockPref("browser.newtabpage.activity-stream.feeds.topsites", false);

/*Highlights*/
lockPref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includeBookmarks", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includePocket", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false);

/*Snippets*/
lockPref("browser.newtabpage.activity-stream.feeds.snippets", false);

You can alternatively paste this base64 code in the location/address bar and save the file as autoconfig.cfg

data:application/octet-stream;base64,Ly8gYXV0b2NvbmZpZy5jZmcgaW4gRmlyZWZveCBwcm9ncmFtIGZvbGRlcgoKLypXZWIgU2VhcmNoKi8KbG9ja1ByZWYoImJyb3dzZXIubmV3dGFicGFnZS5hY3Rpdml0eS1zdHJlYW0uc2hvd1NlYXJjaCIsIGZhbHNlKTsKCi8qVG9wIFNpdGVzKi8KbG9ja1ByZWYoImJyb3dzZXIubmV3dGFicGFnZS5hY3Rpdml0eS1zdHJlYW0uZmVlZHMudG9wc2l0ZXMiLCBmYWxzZSk7CgovKkhpZ2hsaWdodHMqLwpsb2NrUHJlZigiYnJvd3Nlci5uZXd0YWJwYWdlLmFjdGl2aXR5LXN0cmVhbS5mZWVkcy5zZWN0aW9uLmhpZ2hsaWdodHMiLCBmYWxzZSk7CmxvY2tQcmVmKCJicm93c2VyLm5ld3RhYnBhZ2UuYWN0aXZpdHktc3RyZWFtLnNlY3Rpb24uaGlnaGxpZ2h0cy5pbmNsdWRlQm9va21hcmtzIiwgZmFsc2UpOwpsb2NrUHJlZigiYnJvd3Nlci5uZXd0YWJwYWdlLmFjdGl2aXR5LXN0cmVhbS5zZWN0aW9uLmhpZ2hsaWdodHMuaW5jbHVkZURvd25sb2FkcyIsIGZhbHNlKTsKbG9ja1ByZWYoImJyb3dzZXIubmV3dGFicGFnZS5hY3Rpdml0eS1zdHJlYW0uc2VjdGlvbi5oaWdobGlnaHRzLmluY2x1ZGVQb2NrZXQiLCBmYWxzZSk7CmxvY2tQcmVmKCJicm93c2VyLm5ld3RhYnBhZ2UuYWN0aXZpdHktc3RyZWFtLnNlY3Rpb24uaGlnaGxpZ2h0cy5pbmNsdWRlVmlzaXRlZCIsIGZhbHNlKTsKCi8qU25pcHBldHMqLwpsb2NrUHJlZigiYnJvd3Nlci5uZXd0YWJwYWdlLmFjdGl2aXR5LXN0cmVhbS5mZWVkcy5zbmlwcGV0cyIsIGZhbHNlKTs=

You can paste this base64 code in the Firefox location bar and save the file as autoconfig.js

data:application/octet-stream;base64,Ly8KcHJlZigiZ2VuZXJhbC5jb25maWcuZmlsZW5hbWUiLCAiYXV0b2NvbmZpZy5jZmciKTsKcHJlZigiZ2VuZXJhbC5jb25maWcub2JzY3VyZV92YWx1ZSIsIDApOwo=
more options

These functions can be used in autoconfig.cfg:

defaultPref();	// set new default value, requires special data: format for localized prefs
pref();	// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes
more options

cor-el said

You can use an autoconfig.cfg file in the Firefox program folder to disable this feature completely and have these checkboxes grayed. In autoconfig.cfg you can use the lockPref() function to lock a pref to a specific value. In user.js you can only set a startup value via user_pref() (replace lockPref by user_pref in the below posted code). The user can still modify prefs initialized via user.js via the about:config page or via Options/Preferences.

Content of autoconfig.cfg in Firefox program folder. This file need to start with a comment line, so paste all the text in this plain text file

// autoconfig.cfg in Firefox program folder

/*Web Search*/
lockPref("browser.newtabpage.activity-stream.showSearch", false);

/*Top Sites*/
lockPref("browser.newtabpage.activity-stream.feeds.topsites", false);

/*Highlights*/
lockPref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includeBookmarks", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includePocket", false);
lockPref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false);

/*Snippets*/
lockPref("browser.newtabpage.activity-stream.feeds.snippets", false);

You can alternatively paste this base64 code in the location/address bar and save the file as autoconfig.cfg

data:application/octet-stream;base64,Ly8gYXV0b2NvbmZpZy5jZmcgaW4gRmlyZWZveCBwcm9ncmFtIGZvbGRlcgoKLypXZWIgU2VhcmNoKi8KbG9ja1ByZWYoImJyb3dzZXIubmV3dGFicGFnZS5hY3Rpdml0eS1zdHJlYW0uc2hvd1NlYXJjaCIsIGZhbHNlKTsKCi8qVG9wIFNpdGVzKi8KbG9ja1ByZWYoImJyb3dzZXIubmV3dGFicGFnZS5hY3Rpdml0eS1zdHJlYW0uZmVlZHMudG9wc2l0ZXMiLCBmYWxzZSk7CgovKkhpZ2hsaWdodHMqLwpsb2NrUHJlZigiYnJvd3Nlci5uZXd0YWJwYWdlLmFjdGl2aXR5LXN0cmVhbS5mZWVkcy5zZWN0aW9uLmhpZ2hsaWdodHMiLCBmYWxzZSk7CmxvY2tQcmVmKCJicm93c2VyLm5ld3RhYnBhZ2UuYWN0aXZpdHktc3RyZWFtLnNlY3Rpb24uaGlnaGxpZ2h0cy5pbmNsdWRlQm9va21hcmtzIiwgZmFsc2UpOwpsb2NrUHJlZigiYnJvd3Nlci5uZXd0YWJwYWdlLmFjdGl2aXR5LXN0cmVhbS5zZWN0aW9uLmhpZ2hsaWdodHMuaW5jbHVkZURvd25sb2FkcyIsIGZhbHNlKTsKbG9ja1ByZWYoImJyb3dzZXIubmV3dGFicGFnZS5hY3Rpdml0eS1zdHJlYW0uc2VjdGlvbi5oaWdobGlnaHRzLmluY2x1ZGVQb2NrZXQiLCBmYWxzZSk7CmxvY2tQcmVmKCJicm93c2VyLm5ld3RhYnBhZ2UuYWN0aXZpdHktc3RyZWFtLnNlY3Rpb24uaGlnaGxpZ2h0cy5pbmNsdWRlVmlzaXRlZCIsIGZhbHNlKTsKCi8qU25pcHBldHMqLwpsb2NrUHJlZigiYnJvd3Nlci5uZXd0YWJwYWdlLmFjdGl2aXR5LXN0cmVhbS5mZWVkcy5zbmlwcGV0cyIsIGZhbHNlKTs=

You can paste this base64 code in the Firefox location bar and save the file as autoconfig.js

data:application/octet-stream;base64,Ly8KcHJlZigiZ2VuZXJhbC5jb25maWcuZmlsZW5hbWUiLCAiYXV0b2NvbmZpZy5jZmciKTsKcHJlZigiZ2VuZXJhbC5jb25maWcub2JzY3VyZV92YWx1ZSIsIDApOwo=

Thanks for help I place autoconfig.cfg in main folder (where is firefox.exe) but ticks stay the same about:preferences#home

I start Firefox with -p parameter and selet profile from the list. Maybe this cause the problem?

글쓴이 Lexx76 수정일시

more options

선택된 해결법

Did you place autoconfig.js in the defaults\pref folder as well? without this file Firefox doesn't know what file to load.

This requires a autoconfig.js file in the "defaults\pref" folder where the channel-prefs.js file is located that specifies to use autoconfig.cfg.

//
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
  • autoconfig.cfg and autoconfig.js need to start with a comment line (//)
  • autoconfig.js needs to use Unix line endings (LF instead of CR/LF).

From:

<<< NOTE: The autoconfig.js file must use Unix end-of-line (LF), even on Windows systems with Firefox 60 or higher. >>>
The data URI I posted above creates this autoconfig.js file with %0A line endings.

You can verify this in a Hex file viewing utility.

more options

Thanks! It works fine.

more options

cor-el said

Did you place autoconfig.js in the defaults\pref folder as well? without this file Firefox doesn't know what file to load. This requires a autoconfig.js file in the "defaults\pref" folder where the channel-prefs.js file is located that specifies to use autoconfig.cfg. // pref("general.config.filename", "autoconfig.cfg"); pref("general.config.obscure_value", 0);
  • autoconfig.cfg and autoconfig.js need to start with a comment line (//)
  • autoconfig.js needs to use Unix line endings (LF instead of CR/LF).
From:
<<< NOTE: The autoconfig.js file must use Unix end-of-line (LF), even on Windows systems with Firefox 60 or higher. >>>
The data URI I posted above creates this autoconfig.js file with %0A line endings.

You can verify this in a Hex file viewing utility.

Can you help me with this:

Firefox Data Collection and UseWe strive to provide you with choices and collect only what we need to provide and improve Firefox for everyone. We always ask permission before receiving personal information.

Because, then I create a new profile, Im always see notification about these settings

more options

Can I disable this notification?

more options

Did you check the settings in Options/Preferences ?

You can find the Firefox Data Collection settings here:

  • Options/Preferences -> Privacy & Security
    Firefox Data Collection and Use
more options

cor-el said

Did you check the settings in Options/Preferences ? You can find the Firefox Data Collection settings here:
  • Options/Preferences -> Privacy & Security
    Firefox Data Collection and Use

Sorry for unlean message, I added this pref lockPref("datareporting.healthreport.uploadEnabled", false); it works fine. I start new profile several time and never see this https://imgur.com/fn7zKcB again :-)