Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling locked toolkit.telemetry.enabled #156

Open
KOLANICH opened this issue Jun 21, 2018 · 6 comments
Open

Disabling locked toolkit.telemetry.enabled #156

KOLANICH opened this issue Jun 21, 2018 · 6 comments

Comments

@KOLANICH
Copy link

KOLANICH commented Jun 21, 2018

toolkit.telemetry.enabled is a pref controlling telemetry verbosity, it is locked, and the lock is hardcoded into C++ code to prevent it from being disabled easily https://dxr.mozilla.org/mozilla-central/source/modules/libpref/Preferences.cpp#3213

When they have been asked about that but they have rejected the proposal to unlock it.

Fortunately, in arkenfox/user.js#271 (comment) the user @earthlng have advised to use autoconfig to disable this pref.

Autoconfig is described in https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig and some better docs is in https://github.com/Theemim/GeckoAutoconfigIntro .

So here is the manual:

  1. create a file <firefox install dir>/defaults/pref/autoconfig.js with the text
pref("general.config.obscure_value", 0);
pref("general.config.filename", "firefox.cfg.js");

Any other prefs won't work in this file.

  1. create the file <firefox install dir>/firefox.cfg.js with the text
//
lockPref("toolkit.telemetry.enabled", false);

and any other JavaScript code you want to execute.

In Firefox 62.0b1 this lock changes the locked value.

  1. PROTECT THE FILES FROM NON-ADMIN ACCESS!
@leedoyle
Copy link
Contributor

leedoyle commented Aug 7, 2018

Thank you, @KOLANICH
I hope we support updating the repository at least in the form of creating new issues.

@KOLANICH
Copy link
Author

KOLANICH commented Aug 7, 2018

I wonder if this repo makes any sense. Should we migrate to ghacksuserjs/ghacks-user.js add our content to their and just translate the result?

@Atavic
Copy link

Atavic commented Aug 7, 2018

@KOLANICH maybe pyllyukko?

@KOLANICH
Copy link
Author

KOLANICH commented Aug 7, 2018

@Atavic , moved the cursor to star button only to see that this repo is already starred ;) But ghacksuserjs/ghacks-user.js looks more active. I mean I have subscribed to it and I see the messages from it every day.

@Atavic
Copy link

Atavic commented Oct 17, 2018

BTW This repo makes sense for russian users. Most of the other ones are in english.

@Lucatir
Copy link

Lucatir commented Oct 14, 2019

Hello. My privacy invading friend Google brought me here. Can still confirm that this works on version 70.

For men of the penguin, at least in Arch based linux distributions, the install folder is in /usr/lib/
You're welcome, fam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants